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
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.


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


Exception Type Condition
ObjectsException In case of initialization errors.

See Also

IObjectFactoryAware Interface | Spring.Objects.Factory Namespace