C# 클래스 Castle.Facilities.NHibernateIntegration.Internal.SessionFactoryResolver

Default implementation of ISessionFactoryResolver that always queries the kernel instance for the session factory instance.

This gives a chance to developers replace the session factory instance during the application lifetime.

Inspired on Cuyahoga project
상속: ISessionFactoryResolver
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
GetSessionFactory ( String alias ) : ISessionFactory

Returns a session factory instance associated with the specified alias.

RegisterAliasComponentIdMapping ( String alias, String componentKey ) : void

Associated the alias with the component key

SessionFactoryResolver ( IKernel kernel ) : System

Constructs a SessionFactoryResolver

메소드 상세

GetSessionFactory() 공개 메소드

Returns a session factory instance associated with the specified alias.
/// If the alias is not associated with a session factory ///
public GetSessionFactory ( String alias ) : ISessionFactory
alias String /// The alias associated with the session /// factory on the configuration node ///
리턴 ISessionFactory

RegisterAliasComponentIdMapping() 공개 메소드

Associated the alias with the component key
public RegisterAliasComponentIdMapping ( String alias, String componentKey ) : void
alias String /// The alias associated with the session /// factory on the configuration node ///
componentKey String /// The component key associated with /// the session factory on the kernel ///
리턴 void

SessionFactoryResolver() 공개 메소드

Constructs a SessionFactoryResolver
public SessionFactoryResolver ( IKernel kernel ) : System
kernel IKernel /// Kernel instance supplied by the container itself ///
리턴 System