Interface EventListenerFactory
- All Known Implementing Classes:
DefaultEventListenerFactory
,RestrictedTransactionalEventListenerFactory
,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 anApplicationListener
for the specified method.boolean
supportsMethod
(Method method) Specify if this factory supports the specifiedMethod
.
-
Method Details
-
supportsMethod
Specify if this factory supports the specifiedMethod
.- Parameters:
method
- anEventListener
annotated method- Returns:
true
if this factory supports the specified method
-
createApplicationListener
Create anApplicationListener
for the specified method.- Parameters:
beanName
- the name of the beantype
- the target type of the instancemethod
- theEventListener
annotated method- Returns:
- an application listener, suitable to invoke the specified method
-