1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class InitParamRuleSet extends JRuleSetBase { 36 37 41 public InitParamRuleSet(String prefix) { 42 super(prefix); 43 } 44 45 49 public void addRuleInstances(Digester digester) { 50 digester.addObjectCreate(prefix + "init-param", 51 "org.objectweb.jonas_lib.deployment.xml.InitParam"); 52 53 digester.addSetNext(prefix + "init-param", 54 "addInitParam", 55 "org.objectweb.jonas_lib.deployment.xml.InitParam"); 56 digester.addCallMethod(prefix + "init-param/param-name", 57 "setParamName", 0); 58 digester.addCallMethod(prefix + "init-param/param-value", 59 "setParamValue", 0); 60 digester.addCallMethod(prefix + "init-param/description", 61 "setDescription", 0); 62 63 } 64 65 66 } 67 | Popular Tags |