Package io.dropwizard.hibernate
Class SessionFactoryManager
- java.lang.Object
-
- io.dropwizard.hibernate.SessionFactoryManager
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryManager(org.hibernate.SessionFactory factory, ManagedDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedDataSource
getDataSource()
void
start()
Starts the object.void
stop()
Stops the object.
-
-
-
Constructor Detail
-
SessionFactoryManager
public SessionFactoryManager(org.hibernate.SessionFactory factory, ManagedDataSource dataSource)
-
-
Method Detail
-
getDataSource
public ManagedDataSource getDataSource()
-
start
public void start() throws Exception
Description copied from interface:Managed
Starts the object. Called before the application becomes available. The default implementation is a no-op.
-
-