1 16 17 18 package org.apache.catalina.startup; 19 20 21 import org.apache.tomcat.util.digester.Digester; 22 import org.apache.tomcat.util.digester.RuleSetBase; 23 24 25 32 33 public class ClusterRuleSet extends RuleSetBase { 34 35 36 38 39 42 protected String prefix = null; 43 44 45 47 48 52 public ClusterRuleSet() { 53 54 this(""); 55 56 } 57 58 59 66 public ClusterRuleSet(String prefix) { 67 super(); 68 this.namespaceURI = null; 69 this.prefix = prefix; 70 } 71 72 73 75 76 85 public void addRuleInstances(Digester digester) { 86 digester.addObjectCreate(prefix + "Membership", 88 null, "className"); 90 digester.addSetProperties(prefix + "Membership"); 91 digester.addSetNext(prefix + "Membership", 92 "setMembershipService", 93 "org.apache.catalina.cluster.MembershipService"); 94 95 digester.addObjectCreate(prefix + "Sender", 96 null, "className"); 98 digester.addSetProperties(prefix + "Sender"); 99 digester.addSetNext(prefix + "Sender", 100 "setClusterSender", 101 "org.apache.catalina.cluster.ClusterSender"); 102 103 digester.addObjectCreate(prefix + "Receiver", 104 null, "className"); 106 digester.addSetProperties(prefix + "Receiver"); 107 digester.addSetNext(prefix + "Receiver", 108 "setClusterReceiver", 109 "org.apache.catalina.cluster.ClusterReceiver"); 110 111 digester.addObjectCreate(prefix + "Valve", 112 null, "className"); 114 digester.addSetProperties(prefix + "Valve"); 115 digester.addSetNext(prefix + "Valve", 116 "addValve", 117 "org.apache.catalina.Valve"); 118 119 digester.addObjectCreate(prefix + "Deployer", 120 null, "className"); 122 digester.addSetProperties(prefix + "Deployer"); 123 digester.addSetNext(prefix + "Deployer", 124 "setClusterDeployer", 125 "org.apache.catalina.cluster.ClusterDeployer"); 126 127 128 129 } 131 132 133 } 134 | Popular Tags |