1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class ResourceRefRuleSet extends JRuleSetBase { 36 37 38 42 public ResourceRefRuleSet(String prefix) { 43 super(prefix); 44 } 45 46 50 public void addRuleInstances(Digester digester) { 51 digester.addObjectCreate(prefix + "resource-ref", 52 "org.objectweb.jonas_lib.deployment.xml.ResourceRef"); 53 54 digester.addSetNext(prefix + "resource-ref", 55 "addResourceRef", 56 "org.objectweb.jonas_lib.deployment.xml.ResourceRef"); 57 digester.addCallMethod(prefix + "resource-ref/description", 58 "setDescription", 0); 59 digester.addCallMethod(prefix + "resource-ref/res-ref-name", 60 "setResRefName", 0); 61 digester.addCallMethod(prefix + "resource-ref/res-type", 62 "setResType", 0); 63 digester.addCallMethod(prefix + "resource-ref/res-auth", 64 "setResAuth", 0); 65 digester.addCallMethod(prefix + "resource-ref/res-sharing-scope", 66 "setResSharingScope", 0); 67 68 69 } 70 71 72 } 73 | Popular Tags |