Class SessionFactoryManager

  • All Implemented Interfaces:
    Managed

    public class SessionFactoryManager
    extends Object
    implements Managed
    • Constructor Detail

      • SessionFactoryManager

        public SessionFactoryManager​(org.hibernate.SessionFactory factory,
                                     ManagedDataSource dataSource)
    • Method Detail

      • 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.
        Specified by:
        start in interface Managed
        Throws:
        Exception - if something goes wrong; this will halt the application startup.
      • stop

        public void stop()
                  throws Exception
        Description copied from interface: Managed
        Stops the object. Called after the application is no longer accepting requests. The default implementation is a no-op
        Specified by:
        stop in interface Managed
        Throws:
        Exception - if something goes wrong.