类 TransactionalEventListenerFactory
- java.lang.Object
- org.springframework.transaction.event.TransactionalEventListenerFactory
- 所有已实现的接口:
EventListenerFactory
,Ordered
public class TransactionalEventListenerFactory extends Object implements EventListenerFactory, Ordered
EventListenerFactory
implementation that handlesTransactionalEventListener
annotated methods.- 从以下版本开始:
- 4.2
- 作者:
- Stephane Nicoll
字段概要
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
构造器概要
构造器 构造器 说明 TransactionalEventListenerFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ApplicationListener<?>
createApplicationListener(String beanName, Class<?> type, Method method)
Create anApplicationListener
for the specified method.int
getOrder()
Get the order value of this object.void
setOrder(int order)
boolean
supportsMethod(Method method)
Specify if this factory supports the specifiedMethod
.
构造器详细资料
TransactionalEventListenerFactory
public TransactionalEventListenerFactory()
方法详细资料
setOrder
public void setOrder(int order)
getOrder
public int getOrder()
从接口复制的说明:Ordered
Get the order value of this object.Higher 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
在接口中Ordered
- 返回:
- the order value
- 另请参阅:
Ordered.HIGHEST_PRECEDENCE
,Ordered.LOWEST_PRECEDENCE
supportsMethod
public boolean supportsMethod(Method method)
从接口复制的说明:EventListenerFactory
Specify if this factory supports the specifiedMethod
.- 指定者:
supportsMethod
在接口中EventListenerFactory
- 参数:
method
- anEventListener
annotated method- 返回:
true
if this factory supports the specified method
createApplicationListener
public ApplicationListener<?> createApplicationListener(String beanName, Class<?> type, Method method)
从接口复制的说明:EventListenerFactory
Create anApplicationListener
for the specified method.- 指定者:
createApplicationListener
在接口中EventListenerFactory
- 参数:
beanName
- the name of the beantype
- the target type of the instancemethod
- theEventListener
annotated method- 返回:
- an application listener, suitable to invoke the specified method