C# Class Spring.Data.Common.DbProviderFactoryObject

A Spring.Objects.Factory.IFactoryObject implementation that creates instances of the IDbProvider class.
Typically used as a convenience for retrieving shared IDbProvider in a Spring XML configuration file as compared to using explict factory method support.
Inheritance: IFactoryObject, IInitializingObject
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
AfterPropertiesSet ( ) : void

Validates that the provider name is specified.

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

DbProviderFactoryObject ( ) : System

Creates a new instance of the DbProviderFactoryObject class.

GetObject ( ) : object

Return an instance of and IDbProvider as configured by this factory managed by this factory.

If this method is being called in the context of an enclosing IoC container and returns , the IoC container will consider this factory object as not being fully initialized and throw a corresponding (and most probably fatal) exception.

Méthodes protégées

Méthode Description
CreateProviderInstance ( ) : IDbProvider

Create the actual provider instance as specified by this factory's configuration properties.

Private Methods

Méthode Description
ValidateProperties ( ) : void

Validates the properties.

Method Details

AfterPropertiesSet() public méthode

Validates that the provider name is specified.
Invoked by an Spring.Objects.Factory.IObjectFactory after it has injected all of an object's dependencies.
/// In the event of not setting the ProviderName. ///
public AfterPropertiesSet ( ) : void
Résultat void

CreateProviderInstance() protected méthode

Create the actual provider instance as specified by this factory's configuration properties.
protected CreateProviderInstance ( ) : IDbProvider
Résultat IDbProvider

DbProviderFactoryObject() public méthode

Creates a new instance of the DbProviderFactoryObject class.
public DbProviderFactoryObject ( ) : System
Résultat System

GetObject() public méthode

Return an instance of and IDbProvider as configured by this factory managed by this factory.
If this method is being called in the context of an enclosing IoC container and returns , the IoC container will consider this factory object as not being fully initialized and throw a corresponding (and most probably fatal) exception.
public GetObject ( ) : object
Résultat object