1 26 package org.coach.actor.commandline; 27 28 29 import org.objectweb.util.cmdline.api.Iterator; 30 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 31 32 38 public class DefaultActorOption extends DefaultOptionBase { 39 40 41 protected DefaultApplication application_; 42 43 47 public DefaultActorOption(DefaultApplication application) { 48 super(); 50 setLabels(new String [] { "--defaultActor" }); 51 setArguments(new String [] { "file" }); 52 setDescription(new String [] { "Default actor 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_.setDefaultActorConfigFile(file); 70 } 71 72 } 73 | Popular Tags |