C# Class 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
Inheritance: ISessionFactoryResolver
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

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

Method Details

GetSessionFactory() public méthode

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 ///
Résultat ISessionFactory

RegisterAliasComponentIdMapping() public méthode

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

SessionFactoryResolver() public méthode

Constructs a SessionFactoryResolver
public SessionFactoryResolver ( IKernel kernel ) : System
kernel IKernel /// Kernel instance supplied by the container itself ///
Résultat System