org.codehaus.plexus.classworlds.launcher
Class Configurator
java.lang.Objectorg.codehaus.plexus.classworlds.launcher.Configurator
public class Configurator
extends java.lang.Object
Launcher configurator.
void | associateRealms()- Associate parent realms with their children.
|
void | configure(java.io.InputStream is)- Configure from a file.
|
protected java.lang.String | filter(java.lang.String text)- Filter a string for system properties.
|
protected void | loadGlob(java.lang.String line, ClassRealm realm)- Load a glob into the specified classloader.
|
protected void | loadGlob(java.lang.String line, ClassRealm realm, boolean optionally)- Load a glob into the specified classloader.
|
void | setClassWorld(ClassWorld world)- set world.
|
IMPORT_PREFIX
public static final java.lang.String IMPORT_PREFIX
LOAD_PREFIX
public static final java.lang.String LOAD_PREFIX
MAIN_PREFIX
public static final java.lang.String MAIN_PREFIX
OPTIONALLY_PREFIX
public static final java.lang.String OPTIONALLY_PREFIX
Optionally spec prefix.
SET_PREFIX
public static final java.lang.String SET_PREFIX
Configurator
public Configurator(ClassWorld world)
Construct.
world - The classWorld to configure.
Configurator
public Configurator(Launcher launcher)
Construct.
launcher - The launcher to configure.
associateRealms
public void associateRealms()
Associate parent realms with their children.
filter
protected java.lang.String filter(java.lang.String text)
throws ConfigurationException Filter a string for system properties.
text - The text to filter.
loadGlob
protected void loadGlob(java.lang.String line,
ClassRealm realm)
throws java.net.MalformedURLException,
java.io.FileNotFoundException Load a glob into the specified classloader.
line - The path configuration line.realm - The realm to populate
java.net.MalformedURLException - If the line does not represent
a valid path element.java.io.FileNotFoundException - If the line does not represent
a valid path element in the filesystem.
loadGlob
protected void loadGlob(java.lang.String line,
ClassRealm realm,
boolean optionally)
throws java.net.MalformedURLException,
java.io.FileNotFoundException Load a glob into the specified classloader.
line - The path configuration line.realm - The realm to populateoptionally - Whether the path is optional or required
java.net.MalformedURLException - If the line does not represent
a valid path element.java.io.FileNotFoundException - If the line does not represent
a valid path element in the filesystem.
setClassWorld
public void setClassWorld(ClassWorld world)
set world.
this setter is provided so you can use the same configurator to configure several "worlds"
world - The classWorld to configure.