org.codehaus.plexus.classworlds.launcher
Class Configurator
java.lang.Object
org.codehaus.plexus.classworlds.launcher.Configurator
public class Configurator
extends java.lang.Object
Launcher
configurator.
void | associateRealms() - Associate parent realms with their children.
|
void | configure(InputStream is) - Configure from a file.
|
protected String | filter(String text) - Filter a string for system properties.
|
protected void | loadGlob(String line, ClassRealm realm) - Load a glob into the specified classloader.
|
protected void | loadGlob(String line, ClassRealm realm, boolean optionally) - Load a glob into the specified classloader.
|
void | setClassWorld(ClassWorld world) - set world.
|
IMPORT_PREFIX
public static final String IMPORT_PREFIX
LOAD_PREFIX
public static final String LOAD_PREFIX
MAIN_PREFIX
public static final String MAIN_PREFIX
OPTIONALLY_PREFIX
public static final String OPTIONALLY_PREFIX
Optionally spec prefix.
SET_PREFIX
public static final 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 String filter(String text)
throws ConfigurationException
Filter a string for system properties.
text
- The text to filter.
loadGlob
protected void loadGlob(String line,
ClassRealm realm)
throws MalformedURLException,
FileNotFoundException
Load a glob into the specified classloader.
line
- The path configuration line.realm
- The realm to populate
loadGlob
protected void loadGlob(String line,
ClassRealm realm,
boolean optionally)
throws MalformedURLException,
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
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.