|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.classworlds.launcher.ConfigurationParser
public class ConfigurationParser
Event based launcher configuration parser.
| Field Summary | |
|---|---|
static String |
IMPORT_PREFIX
|
static String |
LOAD_PREFIX
|
static String |
MAIN_PREFIX
|
static String |
OPTIONALLY_PREFIX
Optionally spec prefix. |
static String |
SET_PREFIX
|
| Constructor Summary | |
|---|---|
ConfigurationParser(ConfigurationHandler handler,
Properties systemProperties)
|
|
| Method Summary | |
|---|---|
protected String |
filter(String text)
Filter a string for system properties. |
protected void |
loadGlob(String line,
boolean optionally)
Load a glob into the specified classloader. |
void |
parse(InputStream is)
Parse launcher configuration file and send events to the handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MAIN_PREFIX
public static final String SET_PREFIX
public static final String IMPORT_PREFIX
public static final String LOAD_PREFIX
public static final String OPTIONALLY_PREFIX
| Constructor Detail |
|---|
public ConfigurationParser(ConfigurationHandler handler,
Properties systemProperties)
| Method Detail |
|---|
public void parse(InputStream is)
throws IOException,
ConfigurationException,
DuplicateRealmException,
NoSuchRealmException
IOException
ConfigurationException
DuplicateRealmException
NoSuchRealmException
protected void loadGlob(String line,
boolean optionally)
throws MalformedURLException,
FileNotFoundException,
ConfigurationException
line - The path configuration line.optionally - Whether the path is optional or required
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.
ConfigurationException
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||