@Deprecated public class DelegatingConnectionFactory extends Object implements ConnectionFactory, 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 FormConstructor and Description |
---|
DelegatingConnectionFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware , ApplicationContextAware etc. |
Connection |
getConnection()
Deprecated.
|
Connection |
getConnection(ConnectionSpec connectionSpec)
Deprecated.
|
ResourceAdapterMetaData |
getMetaData()
Deprecated.
|
RecordFactory |
getRecordFactory()
Deprecated.
|
Reference |
getReference()
Deprecated.
|
ConnectionFactory |
getTargetConnectionFactory()
Deprecated.
Return the target ConnectionFactory that this ConnectionFactory should delegate to.
|
protected ConnectionFactory |
obtainTargetConnectionFactory()
Deprecated.
Obtain the target
ConnectionFactory for actual use (never null ). |
void |
setReference(Reference reference)
Deprecated.
|
void |
setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)
Deprecated.
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()
InitializingBean
BeanFactory
after it has set all bean properties
and satisfied BeanFactoryAware
, 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
in interface InitializingBean
public Connection getConnection() throws ResourceException
getConnection
in interface ConnectionFactory
ResourceException
public Connection getConnection(ConnectionSpec connectionSpec) throws ResourceException
getConnection
in interface ConnectionFactory
ResourceException
public RecordFactory getRecordFactory() throws ResourceException
getRecordFactory
in interface ConnectionFactory
ResourceException
public ResourceAdapterMetaData getMetaData() throws ResourceException
getMetaData
in interface ConnectionFactory
ResourceException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public void setReference(Reference reference)