Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodInvokingRunnable.AfterPropertiesSet Method

Invoked by an IObjectFactory after it has injected all of an object's dependencies.

[Visual Basic]
Public Overridable Sub AfterPropertiesSet() _
    Implements IInitializingObject.AfterPropertiesSet
[C#]
public virtual void AfterPropertiesSet();

Implements

IInitializingObject.AfterPropertiesSet

Remarks

This method allows the object instance to perform the kind of initialization only possible when all of it's dependencies have been injected (set), and to throw an appropriate exception in the event of misconfiguration.

Please do consult the class level documentation for the IObjectFactory interface for a description of exactly when this method is invoked. In particular, it is worth noting that the IObjectFactoryAware and IApplicationContextAware callbacks will have been invoked prior to this method being called.

Exceptions

Exception Type Condition
Exception In the event of misconfiguration (such as the failure to set a required property) or if initialization fails.

See Also

MethodInvokingRunnable Class | Spring.Scheduling.Quartz Namespace