public class ConfigurationDBAdapterParser
extends java.lang.Object
Constructor and Description |
---|
ConfigurationDBAdapterParser() |
Modifier and Type | Method and Description |
---|---|
protected static void |
doConfigure(ConfigurationDBAdapter configuration,
org.w3c.dom.Document doc)
Parse the W3C DOM document.
|
protected static void |
doConfigure(ConfigurationDBAdapter configuration,
java.io.InputStream stream,
java.lang.String resourceName)
Use the configuration specified in the given input stream.
|
protected static org.w3c.dom.Document |
getDocument(java.io.InputStream stream,
java.lang.String resourceName)
Returns the document.
|
protected static java.io.InputStream |
getResourceAsStream(java.lang.String resource)
Returns an input stream from an application resource in the classpath.
|
protected static void doConfigure(ConfigurationDBAdapter configuration, java.io.InputStream stream, java.lang.String resourceName) throws java.lang.RuntimeException
configuration
- is the configuration object to populatestream
- Inputstream to be read fromresourceName
- The name to use in warning/error messagesjava.lang.RuntimeException
- is thrown when the configuration could not be parsedprotected static org.w3c.dom.Document getDocument(java.io.InputStream stream, java.lang.String resourceName) throws java.lang.RuntimeException
stream
- to readresourceName
- resource in streamjava.lang.RuntimeException
- if the document could not be loaded or parsedprotected static void doConfigure(ConfigurationDBAdapter configuration, org.w3c.dom.Document doc) throws java.lang.RuntimeException
configuration
- is the configuration object to populatedoc
- to parsejava.lang.RuntimeException
- to indicate parse errorsprotected static java.io.InputStream getResourceAsStream(java.lang.String resource)
resource
- to get input stream for