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


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


Required Element Summary
 java.lang.String topic
          The topic to subscribe to
 
Optional Element Summary
 java.lang.Class<? extends EventService> autoCreateEventServiceClass
          Whether or not to autocreate the event service if it doesn't exist on subscription, default is true.
 java.lang.String eventServiceName
          The event service to subscribe to, default to the EventServiceLocator.SERVICE_NAME_EVENT_BUS.
 ReferenceStrength referenceStrength
          Whether to subscribe weakly or strongly.
 

Element Detail

topic

public abstract java.lang.String topic
The topic to subscribe to

referenceStrength

public abstract ReferenceStrength referenceStrength
Whether to subscribe weakly or strongly.

Default:
WEAK

eventServiceName

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

Default:
"EventBus"

autoCreateEventServiceClass

public abstract java.lang.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