Class ServiceSupport

    • Constructor Detail

      • ServiceSupport

        public ServiceSupport()
    • Method Detail

      • dispose

        public static void dispose​(Service service)
      • isStarted

        public boolean isStarted()
        Returns:
        true if this service has been started
      • isStopping

        public boolean isStopping()
        Returns:
        true if this service is in the process of closing
      • isStopped

        public boolean isStopped()
        Returns:
        true if this service is closed
      • addServiceListener

        public void addServiceListener​(ServiceListener l)
      • removeServiceListener

        public void removeServiceListener​(ServiceListener l)
      • postStop

        protected void postStop​(ServiceStopper stopper)
                         throws Exception
        handle for various operations after stopping the service (like locking)
        Throws:
        Exception
      • preStart

        protected void preStart()
                         throws Exception
        handle for various operations before starting the service (like locking)
        Throws:
        Exception