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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]voidsetArguments(String[] args) Sets arguments.voidsetController(DaemonController controller) Sets the daemon controller.
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getController
- Specified by:
getControllerin interfaceDaemonContext- Returns:
- A
DaemonControllerobject that can be used to control theDaemoninstance that thisDaemonContextis passed to.
-
setController
Sets the daemon controller.- Parameters:
controller- the daemon controller.
-
getArguments
- Specified by:
getArgumentsin interfaceDaemonContext- Returns:
- An array of
Stringarguments 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.
-