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.Sessioncreate()Creates a new session using theSessionFactorycreated at service startup.org.hibernate.cfg.ConfigurationReturns the final configuration used to create theSessionFactory.org.hibernate.SessionFactoryReturns 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:HibernateSessionSourceCreates a new session using theSessionFactorycreated at service startup.- Specified by:
createin interfaceHibernateSessionSource
-
getSessionFactory
Description copied from interface:HibernateSessionSourceReturns the SessionFactory from which Hibernate sessions are created.- Specified by:
getSessionFactoryin interfaceHibernateSessionSource
-
getConfiguration
Description copied from interface:HibernateSessionSourceReturns the final configuration used to create theSessionFactory. The configuration is immutable.- Specified by:
getConfigurationin interfaceHibernateSessionSource
-