Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IInstantiationAwareObjectPostProcessor.PostProcessAfterInstantiation Method

Perform operations after the object has been instantiated, via a constructor or factory method, but before Spring property population (from explicit properties or autowiring) occurs.

[Visual Basic]
Public Sub PostProcessAfterInstantiation( _
   ByVal objectInstance As Object, _
   ByVal objectName As String _
)
[C#]
bool PostProcessAfterInstantiation(
   object objectInstance,
   string objectName
);

Parameters

objectInstance
The object instance created, but whose properties have not yet been set
objectName
Name of the object.

Return Value

true if properties should be set on the object; false if property population should be skipped. Normal implementations should return true. Returning false will also prevent any subsequent InstantiationAwareObjectPostProcessor instances from being invoked on this object instance.

See Also

IInstantiationAwareObjectPostProcessor Interface | Spring.Objects.Factory.Config Namespace