org.bushe.swing.event.annotation
Annotation Type RuntimeTopicPatternEventSubscriber
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface RuntimeTopicPatternEventSubscriber
methodName
public abstract String methodName
- Returns:
- name of a method (which should return a String) and whose return value will become the subscription topic.
- Default:
- "getTopicPatternName"
referenceStrength
public abstract ReferenceStrength referenceStrength
- Returns:
- Whether to subscribe weakly or strongly.
- Default:
- org.bushe.swing.event.annotation.ReferenceStrength.WEAK
eventServiceName
public abstract String eventServiceName
- Returns:
- event service to subscribe to, default to the EventServiceLocator.SERVICE_NAME_EVENT_BUS.
- Default:
- "EventBus"
priority
public abstract int priority
- Returns:
- Determines the order in which this subscriber is called, default is FIFO.
- Default:
- 0
exact
public abstract boolean exact
- Returns:
- Whether or not to subscribe to the exact class or a class hierarchy, defaults to class hierarchy (false).
- Default:
- false
autoCreateEventServiceClass
public abstract Class<? extends EventService> autoCreateEventServiceClass
- Returns:
- 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
Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.