Package org.opt4j.config
Class Starter
- java.lang.Object
-
- org.opt4j.config.Starter
-
- Direct Known Subclasses:
Opt4JStarter
public class Starter extends Object
TheStarter
executes configuration files.
-
-
Constructor Summary
Constructors Constructor Description Starter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<File>
addPlugins()
Addsjar
files to the classpath.void
execute(Class<? extends Task> taskClass, String[] filenames)
Executor method.void
execute(String[] args)
Executor method.static void
main(String[] args)
Start configuration files.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Start configuration files. Using multiple configuration files: Execute theTask
s successively.- Parameters:
args
- the configuration files- Throws:
Exception
-
execute
public void execute(String[] args) throws Exception
Executor method.- Parameters:
args
- the configuration files- Throws:
Exception
-
execute
public void execute(Class<? extends Task> taskClass, String[] filenames) throws Exception
Executor method.- Parameters:
taskClass
- the class of the task to usefilenames
- the configuration files- Throws:
Exception
-
addPlugins
public Collection<File> addPlugins()
Addsjar
files to the classpath. Searches in folderplugins
.- Returns:
- all found and added
jar
files
-
-