TargetSource implementation that holds objects in a configurable
Jakarta Commons Pool.
By default, an instance of GenericObjectPool is created.
Subclasses may change the type of ObjectPool used by
overriding the createObjectPool() method.
Provides many configuration properties mirroring those of the Commons Pool
GenericObjectPool class; these properties are passed to the
GenericObjectPool during construction. If creating a subclass of this
class to change the ObjectPool implementation type, pass in the values
of configuration properties that are relevant to your chosen implementation.
The testOnBorrow, testOnReturn and testWhileIdle
properties are explictly not mirrored because the implementation of
PoolableObjectFactory used by this class does not implement
meaningful validation. All exposed Commons Pool properties use the corresponding
Commons Pool defaults: for example,
By default, an instance of
GenericObjectPoolis created. Subclasses may change the type ofObjectPoolused by overriding thecreateObjectPool()method.Provides many configuration properties mirroring those of the Commons Pool
GenericObjectPoolclass; these properties are passed to theGenericObjectPoolduring construction. If creating a subclass of this class to change theObjectPoolimplementation type, pass in the values of configuration properties that are relevant to your chosen implementation.The
testOnBorrow,testOnReturnandtestWhileIdleproperties are explictly not mirrored because the implementation ofPoolableObjectFactoryused by this class does not implement meaningful validation. All exposed Commons Pool properties use the corresponding Commons Pool defaults: for example,