public class TransactionalEventListenerFactory extends java.lang.Object implements EventListenerFactory, Ordered
EventListenerFactory implementation that handles TransactionalEventListener
annotated method.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
TransactionalEventListenerFactory() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationListener<?> |
createApplicationListener(java.lang.String beanName,
java.lang.Class<?> type,
java.lang.reflect.Method method)
Create an
ApplicationListener for the specified method. |
int |
getOrder()
Get the order value of this object.
|
void |
setOrder(int order) |
boolean |
supportsMethod(java.lang.reflect.Method method)
Specify if this factory supports the specified
Method. |
public void setOrder(int order)
public int getOrder()
OrderedHigher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet load-on-startup values).
Same order values will result in arbitrary sort positions for the affected objects.
getOrder in interface OrderedOrdered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCEpublic boolean supportsMethod(java.lang.reflect.Method method)
EventListenerFactoryMethod.supportsMethod in interface EventListenerFactorymethod - an EventListener annotated methodtrue if this factory supports the specified methodpublic ApplicationListener<?> createApplicationListener(java.lang.String beanName, java.lang.Class<?> type, java.lang.reflect.Method method)
EventListenerFactoryApplicationListener for the specified method.createApplicationListener in interface EventListenerFactorybeanName - the name of the beantype - the target type of the instancemethod - the EventListener annotated method