org.bushe.swing.event.annotation
Annotation Type EventTopicPatternSubscriber


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface EventTopicPatternSubscriber


Required Element Summary
 String topicPattern
          The Regular Expression to subscribe to.
 
Optional Element Summary
 Class<? extends EventService> autoCreateEventServiceClass
          Whether or not to autocreate the event service if it doesn't exist on subscription, default is true.
 String eventServiceName
          The event service to subscribe to, default to the EventServiceLocator.SERVICE_NAME_EVENT_BUS.
 boolean exact
          Whether or not to subscribe to the exact class or a class hierarchy, defaults to class hierarchy (false).
 int priority
          Determines the order in which this subscriber is called, default is FIFO.
 ReferenceStrength referenceStrength
          Whether to subscribe weakly or strongly.
 

Element Detail

topicPattern

public abstract String topicPattern
The Regular Expression to subscribe to.

exact

public abstract boolean exact
Whether or not to subscribe to the exact class or a class hierarchy, defaults to class hierarchy (false).

Default:
false

referenceStrength

public abstract ReferenceStrength referenceStrength
Whether to subscribe weakly or strongly.

Default:
org.bushe.swing.event.annotation.ReferenceStrength.WEAK

eventServiceName

public abstract String eventServiceName
The event service to subscribe to, default to the EventServiceLocator.SERVICE_NAME_EVENT_BUS.

Default:
"EventBus"

autoCreateEventServiceClass

public abstract Class<? extends EventService> autoCreateEventServiceClass
Whether or not to autocreate the event service if it doesn't exist on subscription, default is true. If the service needs to be created, it must have a default constructor.

Default:
org.bushe.swing.event.ThreadSafeEventService.class

priority

public abstract int priority
Determines the order in which this subscriber is called, default is FIFO.

Default:
0


Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.