1 26 27 package org.objectweb.jonas_web.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 import org.objectweb.jonas_lib.deployment.rules.JonasEnvironmentRuleSet; 32 import org.objectweb.jonas_lib.deployment.rules.JonasMessageDestinationRuleSet; 33 34 38 public class JonasWebAppRuleSet extends JRuleSetBase { 39 40 43 public JonasWebAppRuleSet() { 44 super("jonas-web-app/"); 45 } 46 47 51 public void addRuleInstances(Digester digester) { 52 53 digester.addCallMethod(prefix + "host", 54 "setHost", 0); 55 56 digester.addCallMethod(prefix + "port", 57 "setPort", 0); 58 59 digester.addCallMethod(prefix + "context-root", 60 "setContextRoot", 0); 61 62 digester.addCallMethod(prefix + "java2-delegation-model", 63 "setJava2DelegationModel", 0); 64 65 digester.addRuleSet(new JonasEnvironmentRuleSet(prefix)); 66 67 digester.addRuleSet(new JonasMessageDestinationRuleSet(prefix)); 68 69 } 70 71 72 } 73 | Popular Tags |