Package org.opt4j.core.config
Class Starter
- java.lang.Object
-
- org.opt4j.core.config.Starter
-
- Direct Known Subclasses:
Opt4JStarter
public class Starter extends java.lang.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 java.util.Collection<java.io.File>
addPlugins()
Addsjar
files to the classpath.void
execute(java.lang.Class<? extends Task> taskClass, java.lang.String[] filenames)
Executor method.void
execute(java.lang.String[] args)
Executor method.static void
main(java.lang.String[] args)
Start configuration files.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Start configuration files. Using multiple configuration files: Execute theTask
s successively.- Parameters:
args
- the configuration files- Throws:
java.lang.Exception
-
execute
public void execute(java.lang.String[] args) throws java.lang.Exception
Executor method.- Parameters:
args
- the configuration files- Throws:
java.lang.Exception
-
execute
public void execute(java.lang.Class<? extends Task> taskClass, java.lang.String[] filenames) throws java.lang.Exception
Executor method.- Parameters:
taskClass
- the class of the task to usefilenames
- the configuration files- Throws:
java.lang.Exception
-
addPlugins
public java.util.Collection<java.io.File> addPlugins()
Addsjar
files to the classpath. Searches in folderplugins
.- Returns:
- all found and added
jar
files
-
-