|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl
public class HibernateSessionSourceImpl
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 |
listenForShutdown(RegistryShutdownHub hub)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateSessionSourceImpl(org.slf4j.Logger logger, java.util.List<HibernateConfigurer> hibernateConfigurers)
Method Detail |
---|
@PostInjection public void listenForShutdown(RegistryShutdownHub hub)
public org.hibernate.Session create()
HibernateSessionSource
SessionFactory
created at service startup.
create
in interface HibernateSessionSource
public org.hibernate.SessionFactory getSessionFactory()
HibernateSessionSource
getSessionFactory
in interface HibernateSessionSource
public org.hibernate.cfg.Configuration getConfiguration()
HibernateSessionSource
SessionFactory
. The configuration is immutable.
getConfiguration
in interface HibernateSessionSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |