org.logicalcobwebs.proxool.configuration
public class JAXPConfigurator extends java.lang.Object
See XMLConfigurator
for the Proxool xml configuration format.
All the configure
methods of this class takes a boolean argument describing whether the
xml should be validated or not. If you want your xml to be validated be sure to read the
Validation chapter in the JavaDoc for XMLConfigurator
.
Constructor and Description |
---|
JAXPConfigurator() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(org.xml.sax.InputSource inputSource,
boolean validate)
Configure Proxool with xml from the given InputSource.
|
static void |
configure(java.io.Reader reader,
boolean validate)
Configure Proxool with xml from the given reader.
|
static void |
configure(java.lang.String xmlFileName,
boolean validate)
Configure Proxool with xml from the given file.
|
public static void configure(java.lang.String xmlFileName, boolean validate) throws ProxoolException
xmlFileName
- the file to read xml from.validate
- true
if the parsel shall be validating, and false
otherwise.ProxoolException
- if the configuration fails.public static void configure(org.xml.sax.InputSource inputSource, boolean validate) throws ProxoolException
inputSource
- the InputSource to read xml from.validate
- true
if the parsel shall be validating, and false
otherwise.ProxoolException
- if the configuration fails.public static void configure(java.io.Reader reader, boolean validate) throws ProxoolException
reader
- the reader to read xml from.validate
- true
if the parsel shall be validating, and false
otherwise.ProxoolException
- if the configuration fails.