Class DaemonLoader.Context

    • Constructor Summary

      Constructors 
      Constructor Description
      Context()
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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​(java.lang.String[] args)
      Sets arguments.
      void setController​(DaemonController controller)
      Sets the daemon controller.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Context

        public Context()
        Constructs a new instance.
    • Method Detail

      • setController

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

        public java.lang.String[] getArguments()
        Description copied from interface: DaemonContext
        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.
        Specified by:
        getArguments in interface DaemonContext
        Returns:
        An array of String arguments supplied by the environment.
      • setArguments

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