Package org.apache.commons.daemon
Interface DaemonContext
-
- All Known Implementing Classes:
DaemonLoader.Context
public interface DaemonContext
Defines a set of methods that a Daemon instance can use to communicate with the Daemon container.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]getArguments()Gets an array ofStringarguments 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.DaemonControllergetController()Gets aDaemonControllerobject that can be used to control theDaemoninstance that thisDaemonContextis passed to.
-
-
-
Method Detail
-
getController
DaemonController getController()
Gets aDaemonControllerobject that can be used to control theDaemoninstance that thisDaemonContextis passed to.- Returns:
- A
DaemonControllerobject that can be used to control theDaemon.
-
getArguments
String[] getArguments()
Gets an array ofStringarguments 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.- Returns:
- An array of
Stringarguments supplied by the environment.
-
-