org.bushe.swing.event.annotation
Annotation Type VetoRuntimeTopicSubscriber
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface VetoRuntimeTopicSubscriber
A veto subscriber to a topic that is determined at runtime.
methodName
public abstract String methodName
- Returns:
- name of a method (that must return a String) and whose return value will become the subscription topic.
- Default:
- "getTopicName"
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
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.