Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IPoolableObjectFactory Interface

Defines lifecycle methods for objects that are to be used in an IObjectPool implementation.

For a list of all members of this type, see IPoolableObjectFactory Members .

[Visual Basic]
Public Interface IPoolableObjectFactory
public interface IPoolableObjectFactory

Types that implement IPoolableObjectFactory

Type Description
SimplePoolTargetSource Pooling target source implementation based on the SimplePool


The following methods summarize the contract between an IObjectPool and an an IPoolableObjectFactory.

  1. MakeObject is called whenever a new instance is needed.
  2. ActivateObject is invoked on every instance before it is returned from the pool.
  3. PassivateObject is invoked on every instance when it is returned to the pool.
  4. DestroyObject is invoked on every instance when it is being dropped from the pool (see ValidateObject

Based on the Jakarta Commons Pool API.


Namespace: Spring.Pool

Assembly: Spring.Core (in Spring.Core.dll)

See Also

IPoolableObjectFactory Members | Spring.Pool Namespace | IObjectPool