public class

DelegatingConnectionFactory

extends Object
implements InitializingBean
java.lang.Object
   ↳ org.springframework.jca.cci.connection.DelegatingConnectionFactory
Known Direct Subclasses

Class Overview

CCI 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.

See Also

Summary

Public Constructors
DelegatingConnectionFactory()
Public Methods
void afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
Connection getConnection(ConnectionSpec connectionSpec)
Connection getConnection()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public DelegatingConnectionFactory ()

Public Methods

public void afterPropertiesSet ()

Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This 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.

public Connection getConnection (ConnectionSpec connectionSpec)

Throws
ResourceException

public Connection getConnection ()

Throws
ResourceException

public ResourceAdapterMetaData getMetaData ()

Throws
ResourceException

public RecordFactory getRecordFactory ()

Throws
ResourceException

public Reference getReference ()

public ConnectionFactory getTargetConnectionFactory ()

Return the target ConnectionFactory that this ConnectionFactory should delegate to.

public void setReference (Reference reference)

public void setTargetConnectionFactory (ConnectionFactory targetConnectionFactory)

Set the target ConnectionFactory that this ConnectionFactory should delegate to.