|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jca.cci.connection.DelegatingConnectionFactory
public abstract class DelegatingConnectionFactory
ConnectionFactory implementation that delegates all calls to a given target ConnectionFactory. Abstract because it is meant to be to be subclasses, overriding specific methods that should not simply delegate to the target.
| Constructor Summary | |
|---|---|
DelegatingConnectionFactory()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
Connection |
getConnection()
|
Connection |
getConnection(ConnectionSpec connectionSpec)
|
ResourceAdapterMetaData |
getMetaData()
|
RecordFactory |
getRecordFactory()
|
Reference |
getReference()
|
ConnectionFactory |
getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory should delegate to. |
void |
setReference(Reference reference)
|
void |
setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)
Set the target ConnectionFactory that this ConnectionFactory should delegate to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingConnectionFactory()
| Method Detail |
|---|
public void setTargetConnectionFactory(ConnectionFactory targetConnectionFactory)
public 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 InitializingBean
public Connection getConnection()
throws ResourceException
getConnection in interface ConnectionFactoryResourceException
public Connection getConnection(ConnectionSpec connectionSpec)
throws ResourceException
getConnection in interface ConnectionFactoryResourceException
public RecordFactory getRecordFactory()
throws ResourceException
getRecordFactory in interface ConnectionFactoryResourceException
public ResourceAdapterMetaData getMetaData()
throws ResourceException
getMetaData in interface ConnectionFactoryResourceExceptionpublic void setReference(Reference reference)
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||