1 27 package org.objectweb.jonas_ear.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class ModuleRuleSet extends JRuleSetBase { 39 40 44 public ModuleRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "module", 54 "org.objectweb.jonas_ear.deployment.xml.Module"); 55 digester.addSetNext(prefix + "module", 56 "addModule", 57 "org.objectweb.jonas_ear.deployment.xml.Module"); 58 digester.addCallMethod(prefix + "module/connector", 59 "setConnector", 0); 60 digester.addCallMethod(prefix + "module/ejb", 61 "setEjb", 0); 62 digester.addCallMethod(prefix + "module/java", 63 "setJava", 0); 64 digester.addRuleSet(new WebRuleSet(prefix + "module/")); 65 digester.addCallMethod(prefix + "module/alt-dd", 66 "setAltDd", 0); 67 } 68 } 69 | Popular Tags |