See Also

IInitializingObject Interface  | IInitializingObject Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

Show All

See Also Languages Spring.Core Send comments on this topic.

AfterPropertiesSet Method

Spring.Objects.Factory Namespace > IInitializingObject Interface : AfterPropertiesSet Method (IInitializingObject)

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

[Visual Basic]
Overridable Sub AfterPropertiesSet()
[C#]
virtual void AfterPropertiesSet();

Exceptions

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

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IInitializingObject Interface  | IInitializingObject Members

 

 


© 2004-2006 Spring.NET Authors. All Rights Reserved.