1 26 27 package org.objectweb.jonas_lib.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 31 35 public class HandlerRuleSet extends JRuleSetBase { 36 37 41 public HandlerRuleSet(String prefix) { 42 super(prefix); 43 } 44 45 49 public void addRuleInstances(Digester digester) { 50 digester.addObjectCreate(prefix + "handler", 51 "org.objectweb.jonas_lib.deployment.xml.Handler"); 52 53 digester.addSetNext(prefix + "handler", 54 "addHandler", 55 "org.objectweb.jonas_lib.deployment.xml.Handler"); 56 57 digester.addCallMethod(prefix + "handler/handler-name", 58 "setHandlerName", 0); 59 digester.addCallMethod(prefix + "handler/handler-class", 60 "setHandlerClass", 0); 61 62 digester.addRuleSet(new InitParamRuleSet(prefix + "handler/")); 63 digester.addRuleSet(new SoapHeaderRuleSet(prefix + "handler/")); 64 65 digester.addCallMethod(prefix + "handler/soap-role", 66 "addSoapRole", 0); 67 68 digester.addCallMethod(prefix + "handler/port-name", 69 "addPortName", 0); 70 } 71 72 73 } 74 | Popular Tags |