public class ProgramDriver extends Object
public void addClass(String name, Class mainClass, String description) throws Throwable
name
- The name of the string you want the class instance to be called withmainClass
- The class that you want to add to the repositorydescription
- The description of the classNoSuchMethodException
SecurityException
Throwable
public void driver(String[] args) throws Throwable
args
- The argument from the user. args[0] is the command to run.NoSuchMethodException
SecurityException
IllegalAccessException
IllegalArgumentException
Throwable
- Anything thrown by the example program's mainCopyright © 2009 The Apache Software Foundation