Class DaemonLoader
- java.lang.Object
-
- org.apache.commons.daemon.support.DaemonLoader
-
public final class DaemonLoader extends java.lang.Object
Used by jsvc for Daemon management.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DaemonLoader.Context
A concreteDaemonContext
that acts as a simple value container.static class
DaemonLoader.Controller
A DaemonController that acts on the the globalDaemonLoader
state.
-
Constructor Summary
Constructors Constructor Description DaemonLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
check(java.lang.String className)
Checks whether the given class name can be instantiated with a zero-argument constructor.static boolean
destroy()
Invokes the wrappeddestroy
method.static boolean
load(java.lang.String className, java.lang.String[] args)
Loads the given class by name, initializing wrapper methods.static boolean
signal()
Invokes the wrappedsignal
method.static boolean
start()
Invokes the wrappedstart
method.static boolean
stop()
Invokes the wrappedstop
method.static void
version()
Prints version information toSystem.err
.
-
-
-
Method Detail
-
version
public static void version()
Prints version information toSystem.err
.
-
check
public static boolean check(java.lang.String className)
Checks whether the given class name can be instantiated with a zero-argument constructor.- Parameters:
className
- The class name.- Returns:
- true if the given class name can be instantiated, false otherwise.
-
signal
public static boolean signal()
Invokes the wrappedsignal
method.- Returns:
- whether the call succeeded.
-
load
public static boolean load(java.lang.String className, java.lang.String[] args)
Loads the given class by name, initializing wrapper methods.- Parameters:
className
- The class name to load.args
- arguments for the context.- Returns:
- whether the operation succeeded.
-
start
public static boolean start()
Invokes the wrappedstart
method.- Returns:
- whether the call succeeded.
-
stop
public static boolean stop()
Invokes the wrappedstop
method.- Returns:
- whether the call succeeded.
-
destroy
public static boolean destroy()
Invokes the wrappeddestroy
method.- Returns:
- whether the call succeeded.
-
-