Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InstantiationAwareObjectPostProcessorAdapter.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 Overridable Sub PostProcessAfterInstantiation( _
   ByVal objectInstance As Object, _
   ByVal objectName As String _
) _
    Implements IInstantiationAwareObjectPostProcessor.PostProcessAfterInstantiation
[C#]
public virtual 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.

Implements

IInstantiationAwareObjectPostProcessor.PostProcessAfterInstantiation

See Also

InstantiationAwareObjectPostProcessorAdapter Class | Spring.Objects.Factory.Config Namespace