public class LoaderConfiguration
extends java.lang.Object
# comment main is classname load path load file load pathWith${property} load pathWith!{required.property} load path/*.jar load path/**/*.jar
RootLoader
Constructor and Description |
---|
LoaderConfiguration()
creates a new loader configuration
|
Modifier and Type | Method and Description |
---|---|
void |
addClassPath(java.lang.String path)
adds a classpath to this configuration.
|
void |
addFile(java.io.File f)
adds a file to the classpath if it does exist
|
void |
addFile(java.lang.String s)
adds a file to the classpath if it does exist
|
void |
configure(java.io.InputStream is)
configures this loader with a stream
|
java.net.URL[] |
getClassPathUrls()
gets a classpath as URL[] from this configuration.
|
java.lang.String |
getMainClass()
returns the main class or null is no is defined
|
void |
setMainClass(java.lang.String clazz)
sets the main class.
|
void |
setRequireMain(boolean requireMain)
if set to false no main class is required when calling
|
public LoaderConfiguration()
public void configure(java.io.InputStream is) throws java.io.IOException
is
- stream used to read the configurationjava.io.IOException
- if reading or parsing the contents of the stream failspublic void addFile(java.io.File f)
public void addFile(java.lang.String s)
public void addClassPath(java.lang.String path)
File.pathSeparator
public java.net.URL[] getClassPathUrls()
public java.lang.String getMainClass()
public void setMainClass(java.lang.String clazz)
public void setRequireMain(boolean requireMain)
configure(InputStream)