Class DaemonLoader.Context
- java.lang.Object
-
- org.apache.commons.daemon.support.DaemonLoader.Context
-
- All Implemented Interfaces:
DaemonContext
- Enclosing class:
- DaemonLoader
public static class DaemonLoader.Context extends java.lang.Object implements DaemonContext
-
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getArguments()
Returns an array ofString
arguments supplied by the environment.DaemonController
getController()
ReturnsDaemonController
object that can be used to control theDaemon
instance that thisDaemonContext
is passed to.void
setArguments(java.lang.String[] args)
void
setController(DaemonController controller)
-
-
-
Method Detail
-
getController
public DaemonController getController()
Description copied from interface:DaemonContext
ReturnsDaemonController
object that can be used to control theDaemon
instance that thisDaemonContext
is passed to.- Specified by:
getController
in interfaceDaemonContext
-
setController
public void setController(DaemonController controller)
-
getArguments
public java.lang.String[] getArguments()
Description copied from interface:DaemonContext
Returns an array ofString
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.- Specified by:
getArguments
in interfaceDaemonContext
-
setArguments
public void setArguments(java.lang.String[] args)
-
-