@Deprecated public class Configurator extends Object
Constructor and Description |
---|
Configurator(ClassWorld world)
Deprecated.
Construct.
|
Configurator(Launcher launcher)
Deprecated.
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected void |
associateRealms()
Deprecated.
Associate parent realms with their children.
|
void |
configure(InputStream is)
Deprecated.
Configure from a file.
|
protected String |
filter(String text)
Deprecated.
Filter a string for system properties.
|
protected void |
loadGlob(String line,
ClassRealm realm)
Deprecated.
Load a glob into the specified classloader.
|
protected void |
loadGlob(String line,
ClassRealm realm,
boolean optionally)
Deprecated.
Load a glob into the specified classloader.
|
void |
setClassWorld(ClassWorld world)
Deprecated.
set world.
|
public Configurator(Launcher launcher)
launcher
- The launcher to configure.public Configurator(ClassWorld world)
world
- The classWorld to configure.public void setClassWorld(ClassWorld world)
world
- The classWorld to configure.public void configure(InputStream is) throws IOException, MalformedURLException, ConfigurationException, DuplicateRealmException, NoSuchRealmException
is
- The config input streamIOException
- If an error occurs reading the config file.MalformedURLException
- If the config file contains invalid URLs.ConfigurationException
- If the config file is corrupt.DuplicateRealmException
- If the config file defines two realms with the same id.NoSuchRealmException
- If the config file defines a main entry point in
a non-existent realm.protected void associateRealms()
protected void loadGlob(String line, ClassRealm realm) throws MalformedURLException, FileNotFoundException
line
- The path configuration line.realm
- The realm to populateMalformedURLException
- If the line does not represent
a valid path element.FileNotFoundException
- If the line does not represent
a valid path element in the filesystem.protected void loadGlob(String line, ClassRealm realm, boolean optionally) throws MalformedURLException, FileNotFoundException
line
- The path configuration line.realm
- The realm to populateoptionally
- Whether the path is optional or requiredMalformedURLException
- If the line does not represent
a valid path element.FileNotFoundException
- If the line does not represent
a valid path element in the filesystem.protected String filter(String text) throws ConfigurationException
text
- The text to filter.ConfigurationException
- If the property does not
exist or if there is a syntax error.Copyright © 2002–2014 Codehaus. All rights reserved.