Package org.apache.shiro.event
Interface EventBusAware
-
public interface EventBusAwareInterface implemented by components that utilize an EventBus for publishing and/or subscribing to/from events and wish that EventBus to be supplied if one is available. NOTE: If anEventBusAwareimplementation wishes to subscribe to events (i.e. it has@Subscriber-annotated methods itself, it must register itself with the event bus, i.e.:eventBus.register(this);
Shiro's default configuration mechanisms will NOT auto-register@Subscriber-annotated components that are alsoEventBusAware: it is assumed that theEventBusAwareimplementation, having access to an EventBus directly, knows best when to register/unregister itself.- Since:
- 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetEventBus(EventBus bus)Sets the availableEventBusthat may be used for publishing and subscribing to/from events.
-
-
-
Method Detail
-
setEventBus
void setEventBus(EventBus bus)
Sets the availableEventBusthat may be used for publishing and subscribing to/from events.- Parameters:
bus- the availableEventBus.
-
-