1 27 package org.objectweb.jonas_ws.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 PackageMappingRuleSet extends JRuleSetBase { 39 40 44 public PackageMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 48 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "package-mapping", 54 "org.objectweb.jonas_ws.deployment.xml.PackageMapping"); 55 digester.addSetNext(prefix + "package-mapping", 56 "addPackageMapping", 57 "org.objectweb.jonas_ws.deployment.xml.PackageMapping"); 58 digester.addCallMethod(prefix + "package-mapping/package-type", 59 "setPackageType", 0); 60 digester.addCallMethod(prefix + "package-mapping/namespaceURI", 61 "setNamespaceURI", 0); 62 } 63 } 64 | Popular Tags |