Class JAXPConfigurator
- java.lang.Object
-
- org.logicalcobwebs.proxool.configuration.JAXPConfigurator
-
public class JAXPConfigurator extends java.lang.ObjectConfigurator that uses JAXP to get a parser for Proxool configuration xml. The parser relies on JAXP version 1.1 or higher and is namespace aware.See
XMLConfiguratorfor the Proxool xml configuration format.All the
configuremethods 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 forXMLConfigurator.- Since:
- Proxool 0.6
- Version:
- $Revision: 1.12 $, $Date: 2006/01/18 14:39:58 $
- Author:
- Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)
-
-
Constructor Summary
Constructors Constructor Description JAXPConfigurator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigure(java.io.Reader reader, boolean validate)Configure Proxool with xml from the given reader.static voidconfigure(java.lang.String xmlFileName, boolean validate)Configure Proxool with xml from the given file.static voidconfigure(org.xml.sax.InputSource inputSource, boolean validate)Configure Proxool with xml from the given InputSource.
-
-
-
Method Detail
-
configure
public static void configure(java.lang.String xmlFileName, boolean validate) throws ProxoolExceptionConfigure Proxool with xml from the given file.- Parameters:
xmlFileName- the file to read xml from.validate-trueif the parsel shall be validating, andfalseotherwise.- Throws:
ProxoolException- if the configuration fails.
-
configure
public static void configure(org.xml.sax.InputSource inputSource, boolean validate) throws ProxoolExceptionConfigure Proxool with xml from the given InputSource.- Parameters:
inputSource- the InputSource to read xml from.validate-trueif the parsel shall be validating, andfalseotherwise.- Throws:
ProxoolException- if the configuration fails.
-
configure
public static void configure(java.io.Reader reader, boolean validate) throws ProxoolExceptionConfigure Proxool with xml from the given reader.- Parameters:
reader- the reader to read xml from.validate-trueif the parsel shall be validating, andfalseotherwise.- Throws:
ProxoolException- if the configuration fails.
-
-