Package org.springframework.jca.endpoint
Class GenericMessageEndpointFactory
java.lang.Object
org.springframework.jca.endpoint.AbstractMessageEndpointFactory
org.springframework.jca.endpoint.GenericMessageEndpointFactory
- All Implemented Interfaces:
- MessageEndpointFactory,- Aware,- BeanNameAware
Generic implementation of the JCA 1.7
 
MessageEndpointFactory interface,
 providing transaction management capabilities for any kind of message
 listener object (e.g. MessageListener objects or
 MessageListener 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 native
 ResourceAdapter instance.
- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classInternal exception thrown when a ResourceException has been encountered during the endpoint invocation.Nested classes/interfaces inherited from class org.springframework.jca.endpoint.AbstractMessageEndpointFactoryAbstractMessageEndpointFactory.AbstractMessageEndpoint
- 
Field SummaryFields inherited from class org.springframework.jca.endpoint.AbstractMessageEndpointFactorylogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateEndpoint(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.Creates a concrete generic message endpoint, internal to this factory.protected ObjectReturn the message listener object for this endpoint.voidsetMessageListener(Object messageListener) Specify the message listener object that the endpoint should expose (e.g.Methods inherited from class org.springframework.jca.endpoint.AbstractMessageEndpointFactorycreateEndpoint, getActivationName, getEndpointClass, isDeliveryTransacted, setBeanName, setTransactionFactory, setTransactionManager, setTransactionName, setTransactionTimeout
- 
Constructor Details- 
GenericMessageEndpointFactorypublic GenericMessageEndpointFactory()
 
- 
- 
Method Details- 
setMessageListenerSpecify the message listener object that the endpoint should expose (e.g. aMessageListenerobjects orMessageListenerimplementation).
- 
getMessageListenerReturn the message listener object for this endpoint.- Since:
- 5.0
 
- 
createEndpointWrap each concrete endpoint instance with an AOP proxy, exposing the message listener's interfaces as well as the endpoint SPI through an AOP introduction.- Specified by:
- createEndpointin interface- MessageEndpointFactory
- Overrides:
- createEndpointin class- AbstractMessageEndpointFactory
- Throws:
- UnavailableException
 
- 
createEndpointInternalprotected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal() throws UnavailableExceptionCreates a concrete generic message endpoint, internal to this factory.- Specified by:
- createEndpointInternalin class- AbstractMessageEndpointFactory
- Returns:
- the actual endpoint instance (never null)
- Throws:
- UnavailableException- if no endpoint is available at present
 
 
-