org.apache.tapestry5.internal.hibernate
Class HibernateSessionSourceImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl
All Implemented Interfaces:
java.util.EventListener, HibernateSessionSource, RegistryShutdownListener

public class HibernateSessionSourceImpl
extends java.lang.Object
implements HibernateSessionSource, RegistryShutdownListener


Constructor Summary
HibernateSessionSourceImpl(org.slf4j.Logger logger, java.util.List<HibernateConfigurer> hibernateConfigurers)
           
 
Method Summary
 org.hibernate.Session create()
          Creates a new session using the SessionFactory created at service startup.
 org.hibernate.cfg.Configuration getConfiguration()
          Returns the final configuration used to create the SessionFactory.
 org.hibernate.SessionFactory getSessionFactory()
          Returns the SessionFactory from which Hibernate sessions are created.
 void registryDidShutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateSessionSourceImpl

public HibernateSessionSourceImpl(org.slf4j.Logger logger,
                                  java.util.List<HibernateConfigurer> hibernateConfigurers)
Method Detail

create

public org.hibernate.Session create()
Description copied from interface: HibernateSessionSource
Creates a new session using the SessionFactory created at service startup.

Specified by:
create in interface HibernateSessionSource

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()
Description copied from interface: HibernateSessionSource
Returns the SessionFactory from which Hibernate sessions are created.

Specified by:
getSessionFactory in interface HibernateSessionSource

getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()
Description copied from interface: HibernateSessionSource
Returns the final configuration used to create the SessionFactory. The configuration is immutable.

Specified by:
getConfiguration in interface HibernateSessionSource

registryDidShutdown

public void registryDidShutdown()
Specified by:
registryDidShutdown in interface RegistryShutdownListener


Copyright © 2007-2009 Apache Software Foundation. All Rights Reserved.