Class DaemonLoader.Context
java.lang.Object
org.apache.commons.daemon.support.DaemonLoader.Context
- All Implemented Interfaces:
DaemonContext
- Enclosing class:
DaemonLoader
A concrete
DaemonContext
that acts as a simple value container.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
void
setArguments
(String[] args) Sets arguments.void
setController
(DaemonController controller) Sets the daemon controller.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getController
- Specified by:
getController
in interfaceDaemonContext
- Returns:
- A
DaemonController
object that can be used to control theDaemon
instance that thisDaemonContext
is passed to.
-
setController
Sets the daemon controller.- Parameters:
controller
- the daemon controller.
-
getArguments
- Specified by:
getArguments
in interfaceDaemonContext
- Returns:
- An array of
String
arguments supplied by the environment corresponding to the array of arguments given in thepublic static void main()
method used as an entry point to most other Java programs.
-
setArguments
Sets arguments. Note that this implementation doesn't currently make a defensive copy.- Parameters:
args
- arguments.
-