类 DelegatingConnectionFactory
- java.lang.Object
- org.springframework.jca.cci.connection.DelegatingConnectionFactory
- 直接已知子类:
ConnectionSpecConnectionFactoryAdapter,SingleConnectionFactory,TransactionAwareConnectionFactoryProxy
public class DelegatingConnectionFactory extends Object implements ConnectionFactory, InitializingBean
CCIConnectionFactoryimplementation that delegates all calls to a given targetConnectionFactory.This class is meant to be subclassed, with subclasses overriding only those methods (such as
getConnection()) that should not simply delegate to the targetConnectionFactory.- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
- 另请参阅:
getConnection(), 序列化表格
构造器概要
构造器 构造器 说明 DelegatingConnectionFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterPropertiesSet()Invoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.ConnectiongetConnection()ConnectiongetConnection(ConnectionSpec connectionSpec)ResourceAdapterMetaDatagetMetaData()RecordFactorygetRecordFactory()ReferencegetReference()ConnectionFactorygetTargetConnectionFactory()Return the target ConnectionFactory that this ConnectionFactory should delegate to.voidsetReference(Reference reference)voidsetTargetConnectionFactory(ConnectionFactory targetConnectionFactory)Set the target ConnectionFactory that this ConnectionFactory should delegate to.
构造器详细资料
DelegatingConnectionFactory
public DelegatingConnectionFactory()
方法详细资料
setTargetConnectionFactory
public void setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
getTargetConnectionFactory
public ConnectionFactory getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory should delegate to.
afterPropertiesSet
public void afterPropertiesSet()
从接口复制的说明:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- 指定者:
afterPropertiesSet在接口中InitializingBean
getConnection
public Connection getConnection() throws ResourceException
- 指定者:
getConnection在接口中ConnectionFactory- 抛出:
ResourceException
getConnection
public Connection getConnection(ConnectionSpec connectionSpec) throws ResourceException
- 指定者:
getConnection在接口中ConnectionFactory- 抛出:
ResourceException
getRecordFactory
public RecordFactory getRecordFactory() throws ResourceException
- 指定者:
getRecordFactory在接口中ConnectionFactory- 抛出:
ResourceException
getMetaData
public ResourceAdapterMetaData getMetaData() throws ResourceException
- 指定者:
getMetaData在接口中ConnectionFactory- 抛出:
ResourceException
getReference
public Reference getReference() throws NamingException
- 指定者:
getReference在接口中Referenceable- 抛出:
NamingException
setReference
public void setReference(Reference reference)
- 指定者:
setReference在接口中Referenceable