Apache CXF API

org.apache.cxf.jca.outbound
Class ConnectionFactoryImpl

java.lang.Object
  extended by org.apache.cxf.jca.outbound.ConnectionFactoryImpl
All Implemented Interfaces:
Serializable, Referenceable, CXFConnectionFactory

public class ConnectionFactoryImpl
extends Object
implements CXFConnectionFactory

Implement ConnectionFactory that delegate allocation of connection to ConnectionManager.

See Also:
Serialized Form

Constructor Summary
ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager connectionManager)
           
 
Method Summary
 CXFConnection getConnection(CXFConnectionSpec spec)
          Creates a CXFConnection object which allows access to CXF web service based on the CXFConnectionSpec object.
 Reference getReference()
           
 void setReference(Reference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory mcf,
                             javax.resource.spi.ConnectionManager connectionManager)
Method Detail

setReference

public void setReference(Reference reference)

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException

getConnection

public CXFConnection getConnection(CXFConnectionSpec spec)
                            throws javax.resource.ResourceException
Description copied from interface: CXFConnectionFactory
Creates a CXFConnection object which allows access to CXF web service based on the CXFConnectionSpec object. Required CXFConnectionSpec fields are wsdlURL, serviceClass, endpointName, and serviceName. Each connection returned by this method MUST be closed by calling the CXFConnection.close() when it is no longer needed.

Specified by:
getConnection in interface CXFConnectionFactory
Returns:
CXFConnection
Throws:
javax.resource.ResourceException

Apache CXF API

Apache CXF