org.tynamo.hibernate.v4
Class Hibernate4SessionSourceImpl

java.lang.Object
  extended by org.tynamo.hibernate.v4.Hibernate4SessionSourceImpl
All Implemented Interfaces:
org.apache.tapestry5.hibernate.HibernateSessionSource

public class Hibernate4SessionSourceImpl
extends Object
implements org.apache.tapestry5.hibernate.HibernateSessionSource


Constructor Summary
Hibernate4SessionSourceImpl(org.slf4j.Logger logger, List<org.apache.tapestry5.hibernate.HibernateConfigurer> hibernateConfigurers)
           
 
Method Summary
 org.hibernate.Session create()
           
 org.hibernate.cfg.Configuration getConfiguration()
           
 org.hibernate.SessionFactory getSessionFactory()
           
 void listenForShutdown(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hibernate4SessionSourceImpl

public Hibernate4SessionSourceImpl(org.slf4j.Logger logger,
                                   List<org.apache.tapestry5.hibernate.HibernateConfigurer> hibernateConfigurers)
Method Detail

listenForShutdown

@PostInjection
public void listenForShutdown(org.apache.tapestry5.ioc.services.RegistryShutdownHub hub)

create

public org.hibernate.Session create()
Specified by:
create in interface org.apache.tapestry5.hibernate.HibernateSessionSource

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()
Specified by:
getSessionFactory in interface org.apache.tapestry5.hibernate.HibernateSessionSource

getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()
Specified by:
getConfiguration in interface org.apache.tapestry5.hibernate.HibernateSessionSource


Copyright © 2004-2013. All Rights Reserved.