Interface EventListenerResolver

All Known Implementing Classes:
AnnotationEventListenerResolver

public interface EventListenerResolver
An EventListenerResolver knows how to resolve (either create or lookup) EventListener instances 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 DefaultEventBus implementation. Custom implementations of this interface can be configured on a DefaultEventBus instance to determine exactly how a subscriber receives events.

For example, the AnnotationEventListenerResolver will inspect a runtime object for Subscribe-annotated methods, and for each method found, return an EventListener instance representing the method to invoke.

Since:
1.3
See Also: