Package org.apache.shiro.event
Interface EventBusAware
-
- All Known Implementing Classes:
AbstractNativeSessionManager
,AbstractValidatingSessionManager
,AuthenticatingSecurityManager
,AuthorizingSecurityManager
,CachingSecurityManager
,DefaultSecurityManager
,DefaultSessionManager
,DefaultWebSecurityManager
,DefaultWebSessionManager
,RealmSecurityManager
,SessionsSecurityManager
public interface EventBusAware
Interface 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 anEventBusAware
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 alsoEventBusAware
: it is assumed that theEventBusAware
implementation, 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 void
setEventBus(EventBus bus)
Sets the availableEventBus
that may be used for publishing and subscribing to/from events.
-
-
-
Method Detail
-
setEventBus
void setEventBus(EventBus bus)
Sets the availableEventBus
that may be used for publishing and subscribing to/from events.- Parameters:
bus
- the availableEventBus
.
-
-