org.jencks
Class EndpointFactorySupport

java.lang.Object
  extended byorg.jencks.EndpointFactorySupport
All Implemented Interfaces:
MessageEndpointFactory
Direct Known Subclasses:
DefaultEndpointFactory, SingletonEndpointFactory

public abstract class EndpointFactorySupport
extends Object
implements MessageEndpointFactory

Version:
$Revision: 1.5 $

Field Summary
protected  TransactionManager transactionManager
           
 
Constructor Summary
EndpointFactorySupport()
           
 
Method Summary
 MessageEndpoint createEndpoint(XAResource xaResource)
           
protected abstract  MessageListener createMessageListener()
           
 String getName()
           
 TransactionManager getTransactionManager()
           
 boolean isDeliveryTransacted(Method method)
           
 void setName(String name)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 String toString()
           
protected  XAResource wrapXAResource(XAResource xaResource)
          XAResource instances must be named to support recovery, so either pass NamedXAResource instances through or wrap with the Spring name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transactionManager

protected TransactionManager transactionManager
Constructor Detail

EndpointFactorySupport

public EndpointFactorySupport()
Method Detail

createEndpoint

public MessageEndpoint createEndpoint(XAResource xaResource)
                               throws UnavailableException
Specified by:
createEndpoint in interface MessageEndpointFactory
Throws:
UnavailableException

toString

public String toString()

isDeliveryTransacted

public boolean isDeliveryTransacted(Method method)
                             throws NoSuchMethodException
Specified by:
isDeliveryTransacted in interface MessageEndpointFactory
Throws:
NoSuchMethodException

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getName

public String getName()

setName

public void setName(String name)

createMessageListener

protected abstract MessageListener createMessageListener()
                                                  throws UnavailableException
Throws:
UnavailableException

wrapXAResource

protected XAResource wrapXAResource(XAResource xaResource)
XAResource instances must be named to support recovery, so either pass NamedXAResource instances through or wrap with the Spring name.

Parameters:
xaResource -
Returns:
the wrapped XAResource instance


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.