Interface ConfigurationHandler
- All Known Implementing Classes:
Configurator
public interface ConfigurationHandler
Receive notification of the logical content of launcher configuration, independently from parsing.
- Author:
- Igor Fedorenko
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addImportFrom
(String realmName, String importSpec) Add an import specification from a realmvoid
addLoadFile
(File file) Add a file to the realmvoid
addLoadURL
(URL url) Add an URL to the realmvoid
Define a new realmvoid
setAppMain
(String mainClassName, String mainRealmName) Define the main class name
-
Method Details
-
setAppMain
Define the main class name- Parameters:
mainClassName
- the main class namemainRealmName
- the main realm from which the main class is loaded
-
addRealm
Define a new realm- Parameters:
realmName
- the new realm name- Throws:
DuplicateRealmException
- when realm with name already exists
-
addImportFrom
Add an import specification from a realm- Parameters:
realmName
- the realm nameimportSpec
- the import specification- Throws:
NoSuchRealmException
- if realm doesn't exist
-
addLoadFile
Add a file to the realm- Parameters:
file
- the file to load content from
-
addLoadURL
Add an URL to the realm- Parameters:
url
- the url to load content from
-