1 17 18 19 package org.apache.catalina.startup; 20 21 import org.xml.sax.Attributes ; 22 23 import org.apache.tomcat.util.IntrospectionUtils; 24 import org.apache.tomcat.util.digester.Rule; 25 26 31 public class SetAllPropertiesRule extends Rule { 32 33 34 36 37 39 40 42 43 50 public void begin(String namespace, String nameX, Attributes attributes) 51 throws Exception { 52 53 for (int i = 0; i < attributes.getLength(); i++) { 54 String name = attributes.getLocalName(i); 55 if ("".equals(name)) { 56 name = attributes.getQName(i); 57 } 58 String value = attributes.getValue(i); 59 IntrospectionUtils.setProperty(digester.peek(), name, value); 60 } 61 62 } 63 64 65 } 66 | Popular Tags |