public interface EventBusAware
EventBusAware
implementation 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 also EventBusAware
: it is assumed that the EventBusAware
implementation, having access to
an EventBus directly, knows best when to register/unregister itself.Modifier and Type | Method and Description |
---|---|
void |
setEventBus(EventBus bus)
Sets the available
EventBus that may be used for publishing and subscribing to/from events. |
void setEventBus(EventBus bus)
EventBus
that may be used for publishing and subscribing to/from events.bus
- the available EventBus
.Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.