Class Configurator
java.lang.Object
org.codehaus.plexus.classworlds.launcher.Configurator
- All Implemented Interfaces:
- ConfigurationHandler
Launcher configurator.- Author:
- bob mcwhirter, Jason van Zyl
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurator(ClassWorld world) Construct.Configurator(Launcher launcher) Construct.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddImportFrom(String relamName, String importSpec) Add an import specification from a realmvoidaddLoadFile(File file) Add a file to the realmvoidaddLoadURL(URL url) Add an URL to the realmvoidDefine a new realmvoidAssociate parent realms with their children.voidconfigure(InputStream is) Configure from a file.voidsetAppMain(String mainClassName, String mainRealmName) Define the main class namevoidsetClassWorld(ClassWorld world) set world.
- 
Constructor Details- 
Configurator
- 
Configurator
 
- 
- 
Method Details- 
setClassWorldset 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, ConfigurationException, DuplicateRealmException, NoSuchRealmException 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.
 
- 
associateRealmspublic void associateRealms()Associate parent realms with their children.
- 
addImportFromDescription copied from interface:ConfigurationHandlerAdd an import specification from a realm- Specified by:
- addImportFromin interface- ConfigurationHandler
- Parameters:
- relamName- the realm name
- importSpec- the import specification
- Throws:
- NoSuchRealmException- if realm doesn't exist
 
- 
addLoadFileDescription copied from interface:ConfigurationHandlerAdd a file to the realm- Specified by:
- addLoadFilein interface- ConfigurationHandler
- Parameters:
- file- the file to load content from
 
- 
addLoadURLDescription copied from interface:ConfigurationHandlerAdd an URL to the realm- Specified by:
- addLoadURLin interface- ConfigurationHandler
- Parameters:
- url- the url to load content from
 
- 
addRealmDescription copied from interface:ConfigurationHandlerDefine a new realm- Specified by:
- addRealmin interface- ConfigurationHandler
- Parameters:
- realmName- the new realm name
- Throws:
- DuplicateRealmException- when realm with name already exists
 
- 
setAppMainDescription copied from interface:ConfigurationHandlerDefine the main class name- Specified by:
- setAppMainin interface- ConfigurationHandler
- Parameters:
- mainClassName- the main class name
- mainRealmName- the main realm from which the main class is loaded
 
 
-