Class HibernateSessionSourceImpl
java.lang.Object
org.apache.tapestry5.hibernate.internal.HibernateSessionSourceImpl
- All Implemented Interfaces:
HibernateSessionSource
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateSessionSourceImpl
(org.slf4j.Logger logger, List<HibernateConfigurer> hibernateConfigurers) -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.Session
create()
Creates a new session using theSessionFactory
created at service startup.org.hibernate.cfg.Configuration
Returns the final configuration used to create theSessionFactory
.org.hibernate.SessionFactory
Returns the SessionFactory from which Hibernate sessions are created.void
-
Constructor Details
-
HibernateSessionSourceImpl
public HibernateSessionSourceImpl(org.slf4j.Logger logger, List<HibernateConfigurer> hibernateConfigurers)
-
-
Method Details
-
listenForShutdown
-
create
Description copied from interface:HibernateSessionSource
Creates a new session using theSessionFactory
created at service startup.- Specified by:
create
in interfaceHibernateSessionSource
-
getSessionFactory
Description copied from interface:HibernateSessionSource
Returns the SessionFactory from which Hibernate sessions are created.- Specified by:
getSessionFactory
in interfaceHibernateSessionSource
-
getConfiguration
Description copied from interface:HibernateSessionSource
Returns the final configuration used to create theSessionFactory
. The configuration is immutable.- Specified by:
getConfiguration
in interfaceHibernateSessionSource
-