public class DelegatingConnectionFactory extends Object implements ConnectionFactory, org.springframework.beans.factory.InitializingBean
ConnectionFactory implementation that delegates all calls
 to a given target ConnectionFactory.
 This class is meant to be subclassed, with subclasses overriding only
 those methods (such as getConnection()) that should not simply
 delegate to the target ConnectionFactory.
getConnection(), 
Serialized Form| Constructor and Description | 
|---|
| DelegatingConnectionFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| 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 target  ConnectionFactoryfor actual use (nevernull). | 
| void | setReference(Reference reference) | 
| void | setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)Set the target ConnectionFactory that this ConnectionFactory should delegate to. | 
public void setTargetConnectionFactory(@Nullable
                                       ConnectionFactory targetConnectionFactory)
@Nullable public ConnectionFactory getTargetConnectionFactory()
protected ConnectionFactory obtainTargetConnectionFactory()
ConnectionFactory for actual use (never null).public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Connection getConnection() throws ResourceException
getConnection in interface ConnectionFactoryResourceExceptionpublic Connection getConnection(ConnectionSpec connectionSpec) throws ResourceException
getConnection in interface ConnectionFactoryResourceExceptionpublic RecordFactory getRecordFactory() throws ResourceException
getRecordFactory in interface ConnectionFactoryResourceExceptionpublic ResourceAdapterMetaData getMetaData() throws ResourceException
getMetaData in interface ConnectionFactoryResourceExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic void setReference(Reference reference)