public interface EventListenerFactory
ApplicationListener
for methods
annotated with EventListener
.Modifier and Type | Method and Description |
---|---|
ApplicationListener<?> |
createApplicationListener(String beanName,
Class<?> type,
Method method)
Create an
ApplicationListener for the specified method. |
boolean |
supportsMethod(Method method)
Specify if this factory supports the specified
Method . |
boolean supportsMethod(Method method)
Method
.method
- an EventListener
annotated methodtrue
if this factory supports the specified methodApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method)
ApplicationListener
for the specified method.beanName
- the name of the beantype
- the target type of the instancemethod
- the EventListener
annotated method