C# Class Castle.ActiveRecord.SessionFactoryHolder

Default implementation of ISessionFactoryHolder
This class is thread safe
Inheritance: System.MarshalByRefObject, ISessionFactoryHolder
Afficher le fichier Open project: shosca/ActiveRecord

Protected Properties

Свойство Type Description
RegisteredAssemblies ISet
Type2Model Model>.ConcurrentDictionary
Type2SessFactory SfHolder>.IDictionary

Méthodes publiques

Méthode Description
Dispose ( ) : void
GetAllConfigurations ( ) : NHibernate.Cfg.Configuration[]

Pendent

GetClassMetadata ( Type type ) : IClassMetadata
GetConfiguration ( Type type ) : NHibernate.Cfg.Configuration

Requests the Configuration associated to the type.

GetModel ( Type type ) : Model
GetNonProxyType ( Type type ) : Type
GetRegisteredTypes ( ) : System.Type[]

Requests the registered types

GetSessionFactories ( ) : ISessionFactory[]

Gets the all the session factories.

GetSessionFactory ( Type type ) : ISessionFactory

Returns ISessionFactory of a registered type

IsInitialized ( Type type ) : bool
RegisterConfiguration ( NHibernate.Cfg.Configuration cfg, string name ) : void

This method allows direct registration of Configuration

SessionFactoryHolder ( IActiveRecordConfiguration source ) : System

Méthodes protégées

Méthode Description
RegisterConfiguration ( SessionFactoryConfig config ) : void

Private Methods

Méthode Description
CreateThreadScopeInfoImplementation ( IActiveRecordConfiguration source ) : IThreadScopeInfo

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetAllConfigurations() public méthode

Pendent
public GetAllConfigurations ( ) : NHibernate.Cfg.Configuration[]
Résultat NHibernate.Cfg.Configuration[]

GetClassMetadata() public méthode

public GetClassMetadata ( Type type ) : IClassMetadata
type System.Type
Résultat IClassMetadata

GetConfiguration() public méthode

Requests the Configuration associated to the type.
public GetConfiguration ( Type type ) : NHibernate.Cfg.Configuration
type System.Type
Résultat NHibernate.Cfg.Configuration

GetModel() public méthode

public GetModel ( Type type ) : Model
type System.Type
Résultat Model

GetNonProxyType() public méthode

public GetNonProxyType ( Type type ) : Type
type System.Type
Résultat System.Type

GetRegisteredTypes() public méthode

Requests the registered types
public GetRegisteredTypes ( ) : System.Type[]
Résultat System.Type[]

GetSessionFactories() public méthode

Gets the all the session factories.
public GetSessionFactories ( ) : ISessionFactory[]
Résultat ISessionFactory[]

GetSessionFactory() public méthode

Returns ISessionFactory of a registered type
public GetSessionFactory ( Type type ) : ISessionFactory
type System.Type
Résultat ISessionFactory

IsInitialized() public méthode

public IsInitialized ( Type type ) : bool
type System.Type
Résultat bool

RegisterConfiguration() public méthode

This method allows direct registration of Configuration
public RegisterConfiguration ( NHibernate.Cfg.Configuration cfg, string name ) : void
cfg NHibernate.Cfg.Configuration
name string
Résultat void

RegisterConfiguration() protected méthode

protected RegisterConfiguration ( SessionFactoryConfig config ) : void
config Castle.ActiveRecord.Config.SessionFactoryConfig
Résultat void

SessionFactoryHolder() public méthode

public SessionFactoryHolder ( IActiveRecordConfiguration source ) : System
source IActiveRecordConfiguration
Résultat System

Property Details

RegisteredAssemblies protected_oe property

protected ISet RegisteredAssemblies
Résultat ISet

Type2Model protected_oe property

protected ConcurrentDictionary Type2Model
Résultat Model>.ConcurrentDictionary

Type2SessFactory protected_oe property

protected IDictionary Type2SessFactory
Résultat SfHolder>.IDictionary