1 26 package org.objectweb.openccm.explorer.commandLine; 27 28 29 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 30 31 38 public class DefaultContextOption extends DefaultOptionBase { 39 40 41 protected DefaultApplication application_; 42 43 47 public DefaultContextOption(DefaultApplication application) { 48 super(); 50 setLabels(new String [] { "--defaultContext" }); 51 setArguments(new String [] { "file" }); 52 setDescription(new String [] { "Default context XML file (You don't have to use this option !)" }); 53 54 application_ = application; 56 } 57 58 62 66 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 67 checkAlreadySet(iterator); 68 String file = consumeArgument(iterator); 69 application_.setDefaultContextConfigFile(file); 70 } 71 72 } 73 | Popular Tags |