Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IPoolableObjectFactory.ValidateObject Method

Ensures that the instance is safe to be returned by the pool. Returns false if this object should be destroyed.

[Visual Basic]
Public Sub ValidateObject( _
   ByVal obj As Object _
bool ValidateObject(
   object obj


The instance to validate.

Return Value

false if this object is not valid and should be dropped from the pool, otherwise true.


Invoked in an implementation-specific fashion to determine if an instance is still valid to be returned by the pool. It will only be invoked on an "activated" instance.

See Also

IPoolableObjectFactory Interface | Spring.Pool Namespace