1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 34 public class ResourceEnvRefRuleSet extends JRuleSetBase { 35 36 40 public ResourceEnvRefRuleSet(String prefix) { 41 super(prefix); 42 } 43 44 48 public void addRuleInstances(Digester digester) { 49 digester.addObjectCreate(prefix + "resource-env-ref", 50 "org.objectweb.jonas_lib.deployment.xml.ResourceEnvRef"); 51 52 digester.addSetNext(prefix + "resource-env-ref", 53 "addResourceEnvRef", 54 "org.objectweb.jonas_lib.deployment.xml.ResourceEnvRef"); 55 digester.addCallMethod(prefix + "resource-env-ref/description", 56 "setDescription", 0); 57 digester.addCallMethod(prefix + "resource-env-ref/resource-env-ref-name", 58 "setResourceEnvRefName", 0); 59 digester.addCallMethod(prefix + "resource-env-ref/resource-env-ref-type", 60 "setResourceEnvRefType", 0); 61 } 62 63 64 } 65 | Popular Tags |