org.nhindirect.config.manager
Class ConfigManager

java.lang.Object
  extended by org.nhindirect.config.manager.ConfigManager

public class ConfigManager
extends Object


Constructor Summary
ConfigManager(URL configURL)
          Constructor with the location of the configuration service.
 
Method Summary
static void main(String[] args)
          Application entry point.
 boolean run(String[] args)
          Either executes commands from the command line or runs the manager interactively.
static void setExitOnEndCommands(boolean exit)
          Determines if the application should exit when command processing is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigManager

public ConfigManager(URL configURL)
Constructor with the location of the configuration service.

Parameters:
configURL - URL containing the locations of the configuration service.
Since:
1.0
Method Detail

main

public static void main(String[] args)
Application entry point.

Parameters:
args - Command line arguments.
Since:
1.0

run

public boolean run(String[] args)
Either executes commands from the command line or runs the manager interactively.

Parameters:
args - Command arguments. If the arguments are empty, then the manager runs interactively.
Returns:
True if the command was run successfully. False otherwise.
Since:
1.0

setExitOnEndCommands

public static void setExitOnEndCommands(boolean exit)
Determines if the application should exit when command processing is complete. It may be desirable to set this to false if calling from another application context. The default is true.

Parameters:
exit - True if the application should terminate on completing processing commands. False otherwise.


Copyright © 2015. All Rights Reserved.