SpringSessionContext Class
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SpringSessionContext Class

Implementation of NHibernates 1.2's ICurrentSessionContext interface that delegates to Spring's SessionFactoryUtils for providing a Spirng-managed current Session.

For a list of all members of this type, see SpringSessionContext Members .


[Visual Basic]
Public Class SpringSessionContext
    Implements ICurrentSessionContext
public class SpringSessionContext : ICurrentSessionContext

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Used by Spring's LocalSessionFactoryBean if told to expose a transaction-aware SessionFactory.

This ICurrentSessionContext implementation can also be specified in custom ISessionFactory setup through the "hibernate.current_session_context_class" property, with the fully qualified name of this class as value.


Namespace: Spring.Data.NHibernate

Assembly: Spring.Data.NHibernate20 (in Spring.Data.NHibernate20.dll)

See Also

SpringSessionContext Members | Spring.Data.NHibernate Namespace