- All Known Implementing Classes:
public interface EventListenerResolverAn
EventListenerResolverknows how to resolve (either create or lookup)
EventListenerinstances as a result of inspecting a subscriber object, mostly likely a
Subscribe-annotated object instance. This interface exists primarily as a support concept for the
DefaultEventBusimplementation. Custom implementations of this interface can be configured on a
DefaultEventBusinstance to determine exactly how a subscriber receives events. For example, the
AnnotationEventListenerResolverwill inspect a runtime object for
Subscribe-annotated methods, and for each method found, return an
EventListenerinstance representing the method to invoke.
List<EventListener> getEventListeners(Object instance)Returns
EventListenerinstances as a result of inspecting a subscriber object, mostly likely with
instance- the subscriber instance for which EventListener instances should be acquired.
EventListenerinstances as a result of inspecting a subscriber object.