com.google.inject.persist

Interface PersistService



  • public interface PersistService
    Persistence provider service. Use this to manage the overall startup and stop of the persistence module(s).

    TODO(dhanji): Integrate with Service API when appropriate.

    Author:
    dhanji@gmail.com (Dhanji R. Prasanna)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void start()
      Starts the underlying persistence engine and makes guice-persist ready for use.
      void stop()
      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 the EntityManagerFactory. If already stopped, calling this method does nothing. If not yet started, it also does nothing.

Copyright © 2006–2020 Google, Inc.. All rights reserved.