|
||||||||||
| 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 java.lang.String |
IMPORT_PREFIX
|
static java.lang.String |
LOAD_PREFIX
|
static java.lang.String |
MAIN_PREFIX
|
static java.lang.String |
OPTIONALLY_PREFIX
Optionally spec prefix. |
static java.lang.String |
SET_PREFIX
|
| Constructor Summary | |
|---|---|
ConfigurationParser(ConfigurationHandler handler,
java.util.Properties systemProperties)
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
filter(java.lang.String text)
Filter a string for system properties. |
protected void |
loadGlob(java.lang.String line,
boolean optionally)
Load a glob into the specified classloader. |
void |
parse(java.io.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 java.lang.String MAIN_PREFIX
public static final java.lang.String SET_PREFIX
public static final java.lang.String IMPORT_PREFIX
public static final java.lang.String LOAD_PREFIX
public static final java.lang.String OPTIONALLY_PREFIX
| Constructor Detail |
|---|
public ConfigurationParser(ConfigurationHandler handler,
java.util.Properties systemProperties)
| Method Detail |
|---|
public void parse(java.io.InputStream is)
throws java.io.IOException,
ConfigurationException,
DuplicateRealmException,
NoSuchRealmException
java.io.IOException
ConfigurationException
DuplicateRealmException
NoSuchRealmException
protected void loadGlob(java.lang.String line,
boolean optionally)
throws java.net.MalformedURLException,
java.io.FileNotFoundException,
ConfigurationException
line - The path configuration line.realm - The realm to populateoptionally - Whether the path is optional or required
java.net.MalformedURLException - If the line does not represent
a valid path element.
java.io.FileNotFoundException - If the line does not represent
a valid path element in the filesystem.
ConfigurationException
protected java.lang.String filter(java.lang.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 | |||||||||