Apache CXF API

org.apache.cxf.jca.cxf
Class ConnectionFactoryImpl

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

public class ConnectionFactoryImpl
extends Object
implements CXFConnectionFactory, javax.resource.Referenceable, Serializable

See Also:
Serialized Form

Constructor Summary
ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory aMCF, javax.resource.spi.ConnectionManager aCM)
           
 
Method Summary
 Object getBus()
          Returns the underlying Bus for this connection factory.
 Object getConnection(CXFConnectionParam param)
          Creates a client proxy based on the connection parameter object.
 Reference getReference()
           
 void setReference(Reference ref)
           
 
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 aMCF,
                             javax.resource.spi.ConnectionManager aCM)
Method Detail

setReference

public void setReference(Reference ref)

getReference

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

getBus

public Object getBus()
Description copied from interface: CXFConnectionFactory
Returns the underlying Bus for this connection factory. In some J2EE environments, for example Weblogic, the Bus and dependent classes are not available to the J2EE application. In this case the CXF runtime jar: cxf-install-dir/cxf/lib/cxf-rt-version.jar should be added to the classpath of the application server. Once, the Bus class is available on the system classpath, then the returned object may be cast to Bus. In other environments, this cast should be safe without having to modify the classpath org.apache.cxf.Bus = (org.apache.cxf.Bus)connectionFactory.getBus();

Specified by:
getBus in interface CXFConnectionFactory
Returns:
the connection factory&s Bus

getConnection

public Object getConnection(CXFConnectionParam param)
                     throws javax.resource.ResourceException
Description copied from interface: CXFConnectionFactory
Creates a client proxy based on the connection parameter object.

Specified by:
getConnection in interface CXFConnectionFactory
Returns:
A proxy object that implements both the given iface and the Connection interface. It represents the Web service associated with the specified service.
Throws:
javax.resource.ResourceException

Apache CXF API

Apache CXF