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 Object implements DaemonContext
A concrete DaemonContext that acts as a simple value container.
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • getController

      public DaemonController getController()
      Specified by:
      getController in interface DaemonContext
      Returns:
      A DaemonController object that can be used to control the Daemon instance that this DaemonContext is passed to.
    • setController

      public void setController(DaemonController controller)
      Sets the daemon controller.
      Parameters:
      controller - the daemon controller.
    • getArguments

      public String[] getArguments()
      Specified by:
      getArguments in interface DaemonContext
      Returns:
      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.
    • setArguments

      public void setArguments(String[] args)
      Sets arguments. Note that this implementation doesn't currently make a defensive copy.
      Parameters:
      args - arguments.