类 GenericMessageEndpointFactory
- java.lang.Object
- org.springframework.jca.endpoint.AbstractMessageEndpointFactory
- org.springframework.jca.endpoint.GenericMessageEndpointFactory
- 所有已实现的接口:
MessageEndpointFactory
,Aware
,BeanNameAware
public class GenericMessageEndpointFactory extends AbstractMessageEndpointFactory
Generic implementation of the JCA 1.5MessageEndpointFactory
interface, providing transaction management capabilities for any kind of message listener object (e.g.MessageListener
objects orMessageListener
objects.Uses AOP proxies for concrete endpoint instances, simply wrapping the specified message listener object and exposing all of its implemented interfaces on the endpoint instance.
Typically used with Spring's
GenericMessageEndpointManager
, but not tied to it. As a consequence, this endpoint factory could also be used with programmatic endpoint management on a nativeResourceAdapter
instance.- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller
- 另请参阅:
setMessageListener(java.lang.Object)
,AbstractMessageEndpointFactory.setTransactionManager(java.lang.Object)
,GenericMessageEndpointManager
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
GenericMessageEndpointFactory.InternalResourceException
Internal exception thrown when a ResourceException has been encountered during the endpoint invocation.从类继承的嵌套类/接口 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
AbstractMessageEndpointFactory.AbstractMessageEndpoint
字段概要
从类继承的字段 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
logger
构造器概要
构造器 构造器 说明 GenericMessageEndpointFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MessageEndpoint
createEndpoint(XAResource xaResource)
Wrap each concrete endpoint instance with an AOP proxy, exposing the message listener's interfaces as well as the endpoint SPI through an AOP introduction.protected AbstractMessageEndpointFactory.AbstractMessageEndpoint
createEndpointInternal()
Creates a concrete generic message endpoint, internal to this factory.void
setMessageListener(Object messageListener)
Specify the message listener object that the endpoint should expose (e.g. aMessageListener
objects orMessageListener
implementation).从类继承的方法 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
createEndpoint, getActivationName, isDeliveryTransacted, setBeanName, setTransactionFactory, setTransactionManager, setTransactionName, setTransactionTimeout
构造器详细资料
GenericMessageEndpointFactory
public GenericMessageEndpointFactory()
方法详细资料
setMessageListener
public void setMessageListener(Object messageListener)
Specify the message listener object that the endpoint should expose (e.g. aMessageListener
objects orMessageListener
implementation).
createEndpoint
public MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException
Wrap each concrete endpoint instance with an AOP proxy, exposing the message listener's interfaces as well as the endpoint SPI through an AOP introduction.
createEndpointInternal
protected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal() throws UnavailableException
Creates a concrete generic message endpoint, internal to this factory.- 指定者:
createEndpointInternal
在类中AbstractMessageEndpointFactory
- 返回:
- the actual endpoint instance (never
null
) - 抛出:
UnavailableException
- if no endpoint is available at present