1 10 11 package org.mule.config.builders; 12 13 import org.apache.commons.digester.CallMethodRule; 14 15 21 public class CallMethodOnIndexRule extends CallMethodRule 22 { 23 int index = 0; 24 25 public CallMethodOnIndexRule(String s, int i, int index) 26 { 27 super(s, i); 28 this.index = index; 29 } 30 31 public CallMethodOnIndexRule(String s, int index) 32 { 33 super(s); 34 this.index = index; 35 } 36 37 public void end(String string, String string1) throws Exception  38 { 39 Object o = digester.peek(index); 40 digester.push(o); 41 super.end(string, string1); 42 o = digester.pop(); 43 } 44 45 } 46 | Popular Tags |