Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.PostProcessObjectFromFactoryObject Method

Post-process the given object that has been obtained from the FactoryObject. The resulting object will be exposed for object references.

[Visual Basic]
Protected Overridable Sub PostProcessObjectFromFactoryObject( _
   ByVal instance As Object, _
   ByVal objectName As String _
)
[C#]
protected virtual object PostProcessObjectFromFactoryObject(
   object instance,
   string objectName
);

Parameters

instance
The instance obtained from the IFactoryObject.
objectName
Name of the object.

Return Value

The object instance to expose

Remarks

The default implementation simply returns the given object as-is. Subclasses may override this, for example, to apply post-processors.

Exceptions

Exception Type Condition
ObjectsException if any post-processing failed.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace