1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class JonasResourceRuleSet extends JRuleSetBase { 36 37 38 42 public JonasResourceRuleSet(String prefix) { 43 super(prefix); 44 } 45 46 50 public void addRuleInstances(Digester digester) { 51 digester.addObjectCreate(prefix + "jonas-resource", 52 "org.objectweb.jonas_lib.deployment.xml.JonasResource"); 53 digester.addSetNext(prefix + "jonas-resource", 54 "addJonasResource", 55 "org.objectweb.jonas_lib.deployment.xml.JonasResource"); 56 57 digester.addCallMethod(prefix + "jonas-resource/res-ref-name", 58 "setResRefName", 0); 59 digester.addCallMethod(prefix + "jonas-resource/jndi-name", 60 "setJndiName", 0); 61 62 } 63 64 65 } 66 | Popular Tags |