Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.InvokeInitMethods Method

Give an object a chance to react now all its properties are set, and a chance to know about its owning object factory (this object).

[Visual Basic]
Protected Overridable Sub InvokeInitMethods( _
   ByVal target As Object, _
   ByVal name As String, _
   ByVal definition As IConfigurableObjectDefinition _
)
[C#]
protected virtual void InvokeInitMethods(
   object target,
   string name,
   IConfigurableObjectDefinition definition
);

Parameters

target
The new object instance we may need to initialise.
name
The name the object has in the factory. Used for logging output.
definition
The definition of the target object instance.

Remarks

This means checking whether the object implements IInitializingObject and / or IObjectFactoryAware, and invoking the necessary callback(s) if it does.

Custom init methods are resolved in a case-insensitive manner.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace