Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
org.apache.kahadb.util
public class: CommandLineSupport [javadoc | source]
java.lang.Object
   org.apache.kahadb.util.CommandLineSupport
Support utility that can be used to set the properties on any object using command line arguments.
Method from org.apache.kahadb.util.CommandLineSupport Summary:
setOptions
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.util.CommandLineSupport Detail:
 public static String[] setOptions(Object target,
    String[] args) 
    Sets the properties of an object given the command line args. if args contains: --ack-mode=AUTO --url=tcp://localhost:61616 --persistent then it will try to call the following setters on the target object. target.setAckMode("AUTO"); target.setURL(new URI("tcp://localhost:61616") ); target.setPersistent(true); Notice the the proper conversion for the argument is determined by examining the setter argument type.