Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SimplePoolTargetSource.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 Overridable Sub ValidateObject( _
   ByVal obj As Object _
) _
    Implements IPoolableObjectFactory.ValidateObject
[C#]
public virtual bool ValidateObject(
   object obj
);

Parameters

obj
The instance to validate.

Return Value

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

Implements

IPoolableObjectFactory.ValidateObject

See Also

SimplePoolTargetSource Class | Spring.Aop.Target Namespace | ValidateObject