Class H2Lifecycle

  • All Implemented Interfaces:
    com.sun.enterprise.module.LifecyclePolicy

    public class H2Lifecycle
    extends Object
    implements com.sun.enterprise.module.LifecyclePolicy
    Author:
    dochez
    • Constructor Detail

      • H2Lifecycle

        public H2Lifecycle()
        Creates a new instance of DerbyLifecycle
    • Method Detail

      • start

        public void start​(com.sun.enterprise.module.HK2Module module)
        Callback when the module enters the READY state. This is a good time to do any type of one time initialization or set up access to resources
        Specified by:
        start in interface com.sun.enterprise.module.LifecyclePolicy
        Parameters:
        module - the module instance
      • stop

        public void stop​(com.sun.enterprise.module.HK2Module module)
        Callback before the module starts being unloaded. The runtime will free all the module resources and returned to a NEW state.
        Specified by:
        stop in interface com.sun.enterprise.module.LifecyclePolicy
        Parameters:
        module - the module instance