spring-framework / org.springframework.jca.cci.connection / SingleConnectionFactory / <init>

<init>

SingleConnectionFactory()

Create a new SingleConnectionFactory for bean-style usage.

See Also
#setTargetConnectionFactory

SingleConnectionFactory(target: Connection)

Create a new SingleConnectionFactory that always returns the given Connection.

Parameters

target - the single Connection

SingleConnectionFactory(targetConnectionFactory: ConnectionFactory)

Create a new SingleConnectionFactory that always returns a single Connection which it will lazily create via the given target ConnectionFactory.

Parameters

targetConnectionFactory - the target ConnectionFactory