public class HibernateSessionSourceImpl extends Object implements HibernateSessionSource
| Constructor and Description |
|---|
HibernateSessionSourceImpl(org.slf4j.Logger logger,
List<HibernateConfigurer> hibernateConfigurers) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public HibernateSessionSourceImpl(org.slf4j.Logger logger, List<HibernateConfigurer> hibernateConfigurers)
@PostInjection public void listenForShutdown(RegistryShutdownHub hub)
public org.hibernate.Session create()
HibernateSessionSourceSessionFactory created at service startup.create in interface HibernateSessionSourcepublic org.hibernate.SessionFactory getSessionFactory()
HibernateSessionSourcegetSessionFactory in interface HibernateSessionSourcepublic org.hibernate.cfg.Configuration getConfiguration()
HibernateSessionSourceSessionFactory. The configuration is immutable.getConfiguration in interface HibernateSessionSource5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.