类 DelegatingConnectionFactory
- java.lang.Object
- org.springframework.jca.cci.connection.DelegatingConnectionFactory
- 直接已知子类:
ConnectionSpecConnectionFactoryAdapter
,SingleConnectionFactory
,TransactionAwareConnectionFactoryProxy
public class DelegatingConnectionFactory extends Object implements ConnectionFactory, InitializingBean
CCIConnectionFactory
implementation 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()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.Connection
getConnection()
Connection
getConnection(ConnectionSpec connectionSpec)
ResourceAdapterMetaData
getMetaData()
RecordFactory
getRecordFactory()
Reference
getReference()
ConnectionFactory
getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory should delegate to.protected ConnectionFactory
obtainTargetConnectionFactory()
Obtain the targetConnectionFactory
for actual use (nevernull
).void
setReference(Reference reference)
void
setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
构造器详细资料
DelegatingConnectionFactory
public DelegatingConnectionFactory()
方法详细资料
setTargetConnectionFactory
public void setTargetConnectionFactory(@Nullable ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
getTargetConnectionFactory
@Nullable public ConnectionFactory getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory should delegate to.
obtainTargetConnectionFactory
protected ConnectionFactory obtainTargetConnectionFactory()
Obtain the targetConnectionFactory
for actual use (nevernull
).- 从以下版本开始:
- 5.0
afterPropertiesSet
public void afterPropertiesSet()
从接口复制的说明:InitializingBean
Invoked by the containingBeanFactory
after it has set all bean properties and satisfiedBeanFactoryAware
,ApplicationContextAware
etc.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