Package ca.cgjennings.apps.util
Interface InstanceControllerListener
-
public interface InstanceControllerListenerA 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 booleanparseInstanceArguments(boolean isInitialInstance, java.lang.String[] args)This method is called byInstanceControllerto 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 byInstanceControllerto pass on arguments from secondary instances for the primary instance to handle. IfisInitialInstanceistrue, then the arguments have originated with this instance of the program. Otherwise, the arguments have been sent to this instance'sInstanceControllervia interprocess communication.This method should return
trueif it is able to correctly handle the submitted arguments, otherwise it must returnfalse.
-
-