Package org.apache.shiro.event.support
Interface EventListenerResolver
-
- All Known Implementing Classes:
AnnotationEventListenerResolver
public interface EventListenerResolverAnEventListenerResolverknows how to resolve (either create or lookup)EventListenerinstances as a result of inspecting a subscriber object, mostly likely aSubscribe-annotated object instance. This interface exists primarily as a support concept for theDefaultEventBusimplementation. Custom implementations of this interface can be configured on aDefaultEventBusinstance to determine exactly how a subscriber receives events. For example, theAnnotationEventListenerResolverwill inspect a runtime object forSubscribe-annotated methods, and for each method found, return anEventListenerinstance 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)ReturnsEventListenerinstances as a result of inspecting a subscriber object, mostly likely withSubscribe-annotated methods.
-
-
-
Method Detail
-
getEventListeners
List<EventListener> getEventListeners(Object instance)
ReturnsEventListenerinstances 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:
EventListenerinstances as a result of inspecting a subscriber object.
-
-