C# Class Spring.Objects.Factory.Config.FieldRetrievingFactoryObject

Inheritance: IFactoryObject, IInitializingObject, IObjectNameAware
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Invoked by an Spring.Objects.Factory.IObjectFactory after it has set all object properties supplied (and satisfied Spring.Objects.Factory.IObjectFactoryAware and ApplicationContextAware).

This method allows the object instance to perform initialization only possible when all object properties have been set and to throw an exception in the event of misconfiguration.

GetObject ( ) : object

Return an instance (possibly shared or independent) of the object managed by this factory.

Private Methods

Method Description
ParseAndSetFromStaticFieldValue ( ) : void

Method Details

AfterPropertiesSet() public method

Invoked by an Spring.Objects.Factory.IObjectFactory after it has set all object properties supplied (and satisfied Spring.Objects.Factory.IObjectFactoryAware and ApplicationContextAware).

This method allows the object instance to perform initialization only possible when all object properties have been set and to throw an exception in the event of misconfiguration.

/// In the event of misconfiguration (such as failure to set an essential /// property) or if initialization fails. ///
public AfterPropertiesSet ( ) : void
return void

GetObject() public method

Return an instance (possibly shared or independent) of the object managed by this factory.
public GetObject ( ) : object
return object