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