Package com.google.inject.persist
Interface PersistService
-
public interface PersistServicePersistence provider service. Use this to manage the overall startup and stop of the persistence module(s).TODO(user): Integrate with Service API when appropriate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstart()Starts the underlying persistence engine and makes guice-persist ready for use.voidstop()Stops the underlying persistence engine.
-
-
-
Method Detail
-
start
void start()
Starts the underlying persistence engine and makes guice-persist ready for use. For instance, with JPA, it creates an EntityManagerFactory and may open connection pools. This method must be called by your code prior to using any guice-persist or JPA artifacts. If already started, calling this method does nothing, if already stopped, it also does nothing.
-
stop
void stop()
Stops the underlying persistence engine. For instance, with JPA, it closes theEntityManagerFactory. If already stopped, calling this method does nothing. If not yet started, it also does nothing.
-
-