1
2
3
4
5
6
7
8
9
10
11 package org.mule.config.builders;
12
13 import org.apache.commons.digester.CallMethodRule;
14
15
16
17
18 public class CallMethodOnIndexRule extends CallMethodRule
19 {
20 int index = 0;
21
22 public CallMethodOnIndexRule(String s, int i, int index)
23 {
24 super(s, i);
25 this.index = index;
26 }
27
28 public CallMethodOnIndexRule(String s, int index)
29 {
30 super(s);
31 this.index = index;
32 }
33
34 public void end(String string, String string1) throws Exception
35 {
36 Object o = digester.peek(index);
37 digester.push(o);
38 super.end(string, string1);
39 o = digester.pop();
40 }
41
42 }