|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.adapter.cci.ConnectionFactoryImpl
A simple, concrete implementation of the CCI ConnectionFactory interface. Provides basic logging support and resource adapter metadata. Adapter developers should not need to extend this class in most cases.
| Field Summary | |
protected javax.resource.spi.ConnectionManager |
m_connectionManager
|
protected javax.resource.spi.ManagedConnectionFactory |
m_managedConnectionFactory
|
protected Reference |
m_reference
|
protected ResourceAdapterMetaDataImpl |
m_resourceAdapterMetaData
|
| Constructor Summary | |
ConnectionFactoryImpl()
Default constructor |
|
ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory connectionFactory,
javax.resource.spi.ConnectionManager connectionManager,
ResourceAdapterMetaDataImpl resourceAdapterMetaData,
LogContext logContext)
Constructs an instance to create EIS specific application component connection handles. |
|
| Method Summary | |
javax.resource.cci.Connection |
getConnection()
Gets a connection to an EIS instance. |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec cspec)
Gets a connection to an EIS instance. |
LogContext |
getLogContext()
Retrieves an object that determines the logging configuration for this instance in the logging framework. |
ILogger |
getLogger()
Retrieves an object used to log information to. |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData()
|
javax.resource.cci.RecordFactory |
getRecordFactory()
|
Reference |
getReference()
|
protected javax.resource.spi.ConnectionRequestInfo |
mapConnectionSpecToConnectionRequestInfo(javax.resource.cci.ConnectionSpec cspec)
This method gets invoked if the ConnectionSpec instance that is passed to the getConnection method is not a java.util.Map or a ConnectionRequestInfo. |
void |
setReference(Reference reference)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.resource.spi.ManagedConnectionFactory m_managedConnectionFactory
protected javax.resource.spi.ConnectionManager m_connectionManager
protected Reference m_reference
protected ResourceAdapterMetaDataImpl m_resourceAdapterMetaData
| Constructor Detail |
public ConnectionFactoryImpl()
public ConnectionFactoryImpl(javax.resource.spi.ManagedConnectionFactory connectionFactory,
javax.resource.spi.ConnectionManager connectionManager,
ResourceAdapterMetaDataImpl resourceAdapterMetaData,
LogContext logContext)
throws javax.resource.ResourceException
connectionManager - - provides a hook for resource adapter to pass
a connection request to an application server| Method Detail |
public javax.resource.cci.Connection getConnection()
throws javax.resource.ResourceException
getConnection in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceException
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec cspec)
throws javax.resource.ResourceException
getConnection in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceException
protected javax.resource.spi.ConnectionRequestInfo mapConnectionSpecToConnectionRequestInfo(javax.resource.cci.ConnectionSpec cspec)
throws javax.resource.ResourceException
javax.resource.ResourceException - by default; adapter developers should over-ride
this method to establish their own mapping scheme.public LogContext getLogContext()
public ILogger getLogger()
public javax.resource.cci.ResourceAdapterMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceException
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionpublic void setReference(Reference reference)
setReference in interface javax.resource.Referenceable
public javax.resource.cci.RecordFactory getRecordFactory()
throws javax.resource.ResourceException
getRecordFactory in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||