public static class DaemonLoader.Context extends Object implements DaemonContext
DaemonContext that acts as a simple value container.| Constructor and Description |
|---|
Context()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getArguments()
Gets an array of
String arguments supplied by the environment
corresponding to the array of arguments given in the
public static void main() method used as an entry
point to most other Java programs. |
DaemonController |
getController()
Gets a
DaemonController object that can be used to control
the Daemon instance that this DaemonContext
is passed to. |
void |
setArguments(String[] args)
Sets arguments.
|
void |
setController(DaemonController controller)
Sets the daemon controller.
|
public Context()
public DaemonController getController()
DaemonContextDaemonController object that can be used to control
the Daemon instance that this DaemonContext
is passed to.getController in interface DaemonContextDaemonController object that can be used to control
the Daemon.public void setController(DaemonController controller)
controller - the daemon controller.public String[] getArguments()
DaemonContextString arguments supplied by the environment
corresponding to the array of arguments given in the
public static void main() method used as an entry
point to most other Java programs.getArguments in interface DaemonContextString arguments supplied by the environment.public void setArguments(String[] args)
args - arguments.Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons Daemon | Issue management | Source repository