public class DelegatingConnectionFactory extends Object implements javax.resource.cci.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 Form| Constructor and Description |
|---|
DelegatingConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
javax.resource.cci.Connection |
getConnection() |
javax.resource.cci.Connection |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec) |
javax.resource.cci.ResourceAdapterMetaData |
getMetaData() |
javax.resource.cci.RecordFactory |
getRecordFactory() |
Reference |
getReference() |
javax.resource.cci.ConnectionFactory |
getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory should delegate to.
|
void |
setReference(Reference reference) |
void |
setTargetConnectionFactory(javax.resource.cci.ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory that this ConnectionFactory should delegate to.
|
public void setTargetConnectionFactory(javax.resource.cci.ConnectionFactory targetConnectionFactory)
public javax.resource.cci.ConnectionFactory getTargetConnectionFactory()
public void afterPropertiesSet()
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBeanpublic javax.resource.cci.Connection getConnection()
throws javax.resource.ResourceException
getConnection in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceExceptionpublic javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
throws javax.resource.ResourceException
getConnection in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceExceptionpublic javax.resource.cci.RecordFactory getRecordFactory()
throws javax.resource.ResourceException
getRecordFactory in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceExceptionpublic javax.resource.cci.ResourceAdapterMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.cci.ConnectionFactoryjavax.resource.ResourceExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic void setReference(Reference reference)
Copyright © 2015. All rights reserved.