Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectFactoryAware.ObjectFactory Property

Callback that supplies the owning factory to an object instance.

[Visual Basic]
Public MustOverride WriteOnly Property ObjectFactory() As IObjectFactory
   Public Set
   End Set
End Property
[C#]
public IObjectFactory ObjectFactory { public set; }

Property Value

Owning IObjectFactory (may not be a null reference (Nothing in Visual Basic)). The object can immediately call methods on the factory.

Remarks

Invoked after population of normal object properties but before an init callback like IInitializingObject's AfterPropertiesSet method or a custom init-method.

Exceptions

Exception Type Condition
ObjectsException In case of initialization errors.

See Also

IObjectFactoryAware Interface | Spring.Objects.Factory Namespace