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 _
protected virtual void InvokeInitMethods(
   object target,
   string name,
   IConfigurableObjectDefinition definition


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


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