Class SpringApplicationDaemon

java.lang.Object
org.oxerr.spring.boot.daemon.SpringApplicationDaemon
All Implemented Interfaces:
org.apache.commons.daemon.Daemon

public abstract class SpringApplicationDaemon extends Object implements org.apache.commons.daemon.Daemon
  • Constructor Details

    • SpringApplicationDaemon

      public SpringApplicationDaemon()
  • Method Details

    • init

      public void init(org.apache.commons.daemon.DaemonContext context) throws org.apache.commons.daemon.DaemonInitException, Exception
      Specified by:
      init in interface org.apache.commons.daemon.Daemon
      Throws:
      org.apache.commons.daemon.DaemonInitException
      Exception
    • start

      public void start() throws Exception
      Specified by:
      start in interface org.apache.commons.daemon.Daemon
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.commons.daemon.Daemon
      Throws:
      Exception
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.apache.commons.daemon.Daemon
    • initSpringApplication

      protected abstract org.springframework.boot.SpringApplication initSpringApplication(org.apache.commons.daemon.DaemonContext context)