1 27 package org.objectweb.jonas_rar.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class ConfigPropertyRuleSet extends JRuleSetBase { 39 40 44 public ConfigPropertyRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "config-property", 54 "org.objectweb.jonas_rar.deployment.xml.ConfigProperty"); 55 digester.addSetNext(prefix + "config-property", 56 "addConfigProperty", 57 "org.objectweb.jonas_rar.deployment.xml.ConfigProperty"); 58 digester.addCallMethod(prefix + "config-property/description", 59 "addDescription", 0); 60 digester.addCallMethod(prefix + "config-property/config-property-name", 61 "setConfigPropertyName", 0); 62 digester.addCallMethod(prefix + "config-property/config-property-type", 63 "setConfigPropertyType", 0); 64 digester.addCallMethod(prefix + "config-property/config-property-value", 65 "setConfigPropertyValue", 0); 66 } 67 } 68 | Popular Tags |