C# 클래스 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.
상속: IFactoryObject, IInitializingObject
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
CreateProviderInstance ( ) : IDbProvider

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

비공개 메소드들

메소드 설명
ValidateProperties ( ) : void

Validates the properties.

메소드 상세

AfterPropertiesSet() 공개 메소드

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
리턴 void

CreateProviderInstance() 보호된 메소드

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

DbProviderFactoryObject() 공개 메소드

Creates a new instance of the DbProviderFactoryObject class.
public DbProviderFactoryObject ( ) : System
리턴 System

GetObject() 공개 메소드

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
리턴 object