Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InstantiationAwareObjectPostProcessorAdapter.PostProcessBeforeInitialization Method

Apply this IObjectPostProcessor to the given new object instance before any object initialization callbacks.

[Visual Basic]
Public Overridable Sub PostProcessBeforeInitialization( _
   ByVal instance As Object, _
   ByVal name As String _
) _
    Implements IObjectPostProcessor.PostProcessBeforeInitialization
[C#]
public virtual object PostProcessBeforeInitialization(
   object instance,
   string name
);

Parameters

instance
The new object instance.
name
The name of the object.

Return Value

The object instance to use, either the original or a wrapped one.

Implements

IObjectPostProcessor.PostProcessBeforeInitialization

Remarks

The object will already be populated with property values. The returned object instance may be a wrapper around the original.

Exceptions

Exception Type Condition
ObjectsException In case of errors.

See Also

InstantiationAwareObjectPostProcessorAdapter Class | Spring.Objects.Factory.Config Namespace