|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.resources.AbstractConfigLoader
com.xenonsoft.bridgetown.resources.XMLConfigLoader
Default sample XML configuration loader that uses the Commons Digester to parse an XML file.
| Field Summary | |
protected boolean |
debug
boolean flag if the XML parser should be produce debuggable output |
protected boolean |
namespaceAware
boolean flag if the XML parser should be XML namespace aware or not |
protected static java.lang.String[] |
registrations
The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about. |
protected boolean |
validating
boolean flag if the XML parser should be validating |
| Fields inherited from class com.xenonsoft.bridgetown.resources.AbstractConfigLoader |
file, inputStream, uri |
| Constructor Summary | |
XMLConfigLoader()
Default constructor |
|
| Method Summary | |
protected org.apache.commons.digester.Digester |
createParser()
Creates the digester parse with the rules all set up. |
boolean |
isDebug()
Gets the debug output flag for the Commons Digester parser |
boolean |
isNamespaceAware()
Gets boolean flag if the XML parser should be XML namespace aware or not |
boolean |
isValidating()
Gets the XML validating flag for the Commons Digester parser |
AssemblyConfig |
load()
Loads the service assembly configuration from the supplied resource. |
void |
setDebug(boolean debug)
Sets the debug output flag for the Commons Digester parser |
void |
setNamespaceAware(boolean namespaceAware)
Sets boolean flag if the XML parser should be XML namespace aware or not |
void |
setValidating(boolean validating)
Sets the XML validating flag for the Commons Digester parser |
| Methods inherited from class com.xenonsoft.bridgetown.resources.AbstractConfigLoader |
load, load, load, setFile, setInputStream, setUri, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final java.lang.String[] registrations
The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about. There MUST be an even number of Strings in this list!
protected boolean validating
protected boolean debug
protected boolean namespaceAware
| Constructor Detail |
public XMLConfigLoader()
| Method Detail |
public boolean isDebug()
public void setDebug(boolean debug)
debug - the new value for debugpublic boolean isValidating()
public void setValidating(boolean validating)
validating - the new value for validatingpublic boolean isNamespaceAware()
public void setNamespaceAware(boolean namespaceAware)
namespaceAware - the new value for namespaceAwarepublic AssemblyConfig load()
InputStream,
if it is found, and the stream is opened and available,
then method uses the stream.
File exists, then the method loads the
configuration from the system file.
CAUTION: THIS CLASS MIGHT BE REFACTORED or REDESIGNED along with the superclasses.
AssemblyConfigException - if the configuration fails to loadIConfigLoader.load()protected org.apache.commons.digester.Digester createParser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||