Interface EventListenerFactory
- All Known Implementing Classes:
DefaultEventListenerFactory,TransactionalEventListenerFactory
public interface EventListenerFactory
Strategy interface for creating
ApplicationListener for methods
annotated with EventListener.- Since:
- 4.2
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptioncreateApplicationListener(String beanName, Class<?> type, Method method) Create anApplicationListenerfor the specified method.booleansupportsMethod(Method method) Specify if this factory supports the specifiedMethod.
-
Method Details
-
supportsMethod
Specify if this factory supports the specifiedMethod.- Parameters:
method- anEventListenerannotated method- Returns:
trueif this factory supports the specified method
-
createApplicationListener
Create anApplicationListenerfor the specified method.- Parameters:
beanName- the name of the beantype- the target type of the instancemethod- theEventListenerannotated method- Returns:
- an application listener, suitable to invoke the specified method
-