Package org.apache.shiro.event.support
Interface EventListenerResolver
-
- All Known Implementing Classes:
AnnotationEventListenerResolver
public interface EventListenerResolver
AnEventListenerResolver
knows how to resolve (either create or lookup)EventListener
instances as a result of inspecting a subscriber object, mostly likely aSubscribe
-annotated object instance. This interface exists primarily as a support concept for theDefaultEventBus
implementation. Custom implementations of this interface can be configured on aDefaultEventBus
instance to determine exactly how a subscriber receives events. For example, theAnnotationEventListenerResolver
will inspect a runtime object forSubscribe
-annotated methods, and for each method found, return anEventListener
instance representing the method to invoke.- Since:
- 1.3
- See Also:
AnnotationEventListenerResolver
,SingleArgumentMethodEventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<EventListener>
getEventListeners(Object instance)
ReturnsEventListener
instances as a result of inspecting a subscriber object, mostly likely withSubscribe
-annotated methods.
-
-
-
Method Detail
-
getEventListeners
List<EventListener> getEventListeners(Object instance)
ReturnsEventListener
instances as a result of inspecting a subscriber object, mostly likely withSubscribe
-annotated methods.- Parameters:
instance
- the subscriber instance for which EventListener instances should be acquired.- Returns:
EventListener
instances as a result of inspecting a subscriber object.
-
-