Class Configurator
java.lang.Object
org.codehaus.classworlds.Configurator
- Direct Known Subclasses:
- ConfiguratorAdapter
Deprecated.
A compatibility wrapper for org.codehaus.plexus.classworlds.launcher.Configurator
 provided for legacy code
- Author:
- Andrew Williams
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurator(ClassWorld world) Deprecated.Construct.Configurator(Launcher launcher) Deprecated.Construct.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidDeprecated.Associate parent realms with their children.voidconfigure(InputStream is) Deprecated.Configure from a file.protected StringDeprecated.Filter a string for system properties.protected voidloadGlob(String line, ClassRealm realm) Deprecated.Load a glob into the specified classloader.protected voidloadGlob(String line, ClassRealm realm, boolean optionally) Deprecated.Load a glob into the specified classloader.voidsetClassWorld(ClassWorld world) Deprecated.set world.
- 
Constructor Details- 
ConfiguratorDeprecated.Construct.- Parameters:
- launcher- The launcher to configure.
 
- 
ConfiguratorDeprecated.Construct.- Parameters:
- world- The classWorld to configure.
 
 
- 
- 
Method Details- 
setClassWorldDeprecated.set world. this setter is provided so you can use the same configurator to configure several "worlds"- Parameters:
- world- The classWorld to configure.
 
- 
configurepublic void configure(InputStream is) throws IOException, MalformedURLException, ConfigurationException, DuplicateRealmException, NoSuchRealmException Deprecated.Configure from a file.- Parameters:
- is- The config input stream
- Throws:
- IOException- 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.
 
- 
associateRealmsprotected void associateRealms()Deprecated.Associate parent realms with their children.
- 
loadGlobprotected void loadGlob(String line, ClassRealm realm) throws MalformedURLException, FileNotFoundException Deprecated.Load a glob into the specified classloader.- Parameters:
- line- The path configuration line.
- realm- The realm to populate
- Throws:
- MalformedURLException- If the line does not represent a valid path element.
- FileNotFoundException- If the line does not represent a valid path element in the filesystem.
 
- 
loadGlobprotected void loadGlob(String line, ClassRealm realm, boolean optionally) throws MalformedURLException, FileNotFoundException Deprecated.Load a glob into the specified classloader.- Parameters:
- line- The path configuration line.
- realm- The realm to populate
- optionally- Whether the path is optional or required
- Throws:
- MalformedURLException- If the line does not represent a valid path element.
- FileNotFoundException- If the line does not represent a valid path element in the filesystem.
 
- 
filterDeprecated.Filter a string for system properties.- Parameters:
- text- The text to filter.
- Returns:
- The filtered text.
- Throws:
- ConfigurationException- If the property does not exist or if there is a syntax error.
 
 
-