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.EnvironmentRuleSet; 31 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 32 import org.objectweb.jonas_lib.deployment.rules.MessageDestinationRuleSet; 33 import org.objectweb.jonas_lib.deployment.rules.SecurityRoleRuleSet; 34 35 39 public class WebAppRuleSet extends JRuleSetBase { 40 41 44 public WebAppRuleSet() { 45 super("web-app/"); 46 } 47 48 52 public void addRuleInstances(Digester digester) { 53 digester.addCallMethod(prefix + "display-name", 54 "setDisplayName", 0); 55 digester.addRuleSet(new ServletRuleSet(prefix)); 56 digester.addRuleSet(new ServletMappingRuleSet(prefix)); 57 digester.addRuleSet(new SecurityConstraintRuleSet(prefix)); 58 digester.addRuleSet(new SecurityRoleRuleSet(prefix)); 59 digester.addRuleSet(new EnvironmentRuleSet(prefix)); 60 digester.addRuleSet(new MessageDestinationRuleSet(prefix)); 61 digester.addRuleSet(new DistributableRuleSet(prefix)); 62 63 } 64 65 66 } 67 | Popular Tags |