*
*/
public JNDIXMLConfigurator() {
PropertyHandler ph = new PropertyHandler();
// for backward compatibility of descriptors
handlers.put("jndi-mapper", new TagHandler() {
public void endElement(String uri, String localName, String qName)
throws SAXException {
// NOP
}
public void startElement(String uri, String localName,
String qName, Attributes attributes) throws SAXException {
// NOP
}
});
handlers.put("map", new MapHandler());
handlers.put("attr", ph);
handlers.put("bean", new BeanHandler());
handlers.put("source", new SourceHandler());
handlers.put("config", new ConfigHandler());
handlers.put("property", ph);
// validation rules
handlers.put("and", new AndValidHandler());
handlers.put("or", new OrValidHandler());
handlers.put("not", new NotValidHandler());
handlers.put("regex", new RegexValidHandler());
handlers.put("defaults", new DefaultsValidHandler());
handlers.put("mandatory", new MandatoryValidHandler());
// chains
ChainHandler ch = new ChainHandler();
handlers.put("chain", ch);
// basic
handlers.put("root", new RootHandler());
// modify
handlers.put("modify", new ModifyHandler());
handlers.put("operations", new TagHandler() {
public void endElement(String uri, String localName, String qName)
throws SAXException {
ModificationsVariables mods = (ModificationsVariables) pop();
((JNDIMapper) current).getInputChain().addMapper(mods);