public Main() { addOption(new ParameterOption("ac", "applicationContext", "Sets the classpath based spring ApplicationContext", "applicationContext") { protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) { setApplicationContextUri(parameter); } }); addOption(new ParameterOption("fa", "fileApplicationContext", "Sets the filesystem based spring ApplicationContext", "fileApplicationContext") { protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) { setFileApplicationContextUri(parameter); } }); }