Interface InstanceControllerListener


  • public interface InstanceControllerListener
    A listener that is called to process command line arguments from an instance. The instance can either be this instance (if the application is being started for the first time), or else another instance that is being blocked from starting by this instance.
    Author:
    Chris Jennings
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean parseInstanceArguments​(boolean isInitialInstance, java.lang.String[] args)
      This method is called by InstanceController to pass on arguments from secondary instances for the primary instance to handle.
    • Method Detail

      • parseInstanceArguments

        boolean parseInstanceArguments​(boolean isInitialInstance,
                                       java.lang.String[] args)
        This method is called by InstanceController to pass on arguments from secondary instances for the primary instance to handle. If isInitialInstance is true, then the arguments have originated with this instance of the program. Otherwise, the arguments have been sent to this instance's InstanceController via interprocess communication.

        This method should return true if it is able to correctly handle the submitted arguments, otherwise it must return false.