Package org.oxerr.spring.boot.daemon
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
init
(org.apache.commons.daemon.DaemonContext context) protected abstract org.springframework.boot.SpringApplication
initSpringApplication
(org.apache.commons.daemon.DaemonContext context) void
start()
void
stop()
-
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 interfaceorg.apache.commons.daemon.Daemon
- Throws:
org.apache.commons.daemon.DaemonInitException
Exception
-
start
- Specified by:
start
in interfaceorg.apache.commons.daemon.Daemon
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.apache.commons.daemon.Daemon
- Throws:
Exception
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.apache.commons.daemon.Daemon
-
initSpringApplication
protected abstract org.springframework.boot.SpringApplication initSpringApplication(org.apache.commons.daemon.DaemonContext context)
-