Resolves ISessionFactory lookups and deserialization.

Namespace:  NHibernate.Impl
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class SessionFactoryObjectFactory
C#
public sealed class SessionFactoryObjectFactory
Visual C++
public ref class SessionFactoryObjectFactory sealed
JavaScript
NHibernate.Impl.SessionFactoryObjectFactory = function();

Type.createClass(
	'NHibernate.Impl.SessionFactoryObjectFactory');

Remarks

This is used heavily be Deserialization. Currently a SessionFactory is not really serialized. All that is serialized is it's name and uid. During Deserializaiton the serialized SessionFactory is converted to the one contained in this object. So if you are serializing across AppDomains you should make sure that "name" is specified for the SessionFactory in the hbm.xml file and that the other AppDomain has a configured SessionFactory with the same name. If you are serializing in the same AppDomain then there will be no problem because the uid will be in this object.

TODO: verify that the AppDomain statements are correct.

Inheritance Hierarchy

System..::.Object
  NHibernate.Impl..::.SessionFactoryObjectFactory

See Also