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

Inheritance: IFactoryObject, IInitializingObject, IObjectNameAware
Afficher le fichier Open project: spring-projects/spring-net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ParseAndSetFromStaticFieldValue ( ) : void

Method Details

AfterPropertiesSet() public méthode

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
Résultat void

GetObject() public méthode

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