Class HibernateSessionSourceImpl
- java.lang.Object
 - 
- org.apache.tapestry5.hibernate.internal.HibernateSessionSourceImpl
 
 
- 
- All Implemented Interfaces:
 HibernateSessionSource
public class HibernateSessionSourceImpl extends Object implements HibernateSessionSource
 
- 
- 
Constructor Summary
Constructors Constructor Description HibernateSessionSourceImpl(org.slf4j.Logger logger, List<HibernateConfigurer> hibernateConfigurers) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.Sessioncreate()Creates a new session using theSessionFactorycreated at service startup.org.hibernate.cfg.ConfigurationgetConfiguration()Returns the final configuration used to create theSessionFactory.org.hibernate.SessionFactorygetSessionFactory()Returns the SessionFactory from which Hibernate sessions are created.voidlistenForShutdown(RegistryShutdownHub hub) 
 - 
 
- 
- 
Constructor Detail
- 
HibernateSessionSourceImpl
public HibernateSessionSourceImpl(org.slf4j.Logger logger, List<HibernateConfigurer> hibernateConfigurers)
 
 - 
 
- 
Method Detail
- 
listenForShutdown
@PostInjection public void listenForShutdown(RegistryShutdownHub hub)
 
- 
create
public org.hibernate.Session create()
Description copied from interface:HibernateSessionSourceCreates a new session using theSessionFactorycreated at service startup.- Specified by:
 createin interfaceHibernateSessionSource
 
- 
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
Description copied from interface:HibernateSessionSourceReturns the SessionFactory from which Hibernate sessions are created.- Specified by:
 getSessionFactoryin interfaceHibernateSessionSource
 
- 
getConfiguration
public org.hibernate.cfg.Configuration getConfiguration()
Description copied from interface:HibernateSessionSourceReturns the final configuration used to create theSessionFactory. The configuration is immutable.- Specified by:
 getConfigurationin interfaceHibernateSessionSource
 
 - 
 
 -