1 10 11 package org.mule.config.builders; 12 13 import org.apache.commons.digester.SetPropertiesRule; 14 import org.xml.sax.Attributes ; 15 16 24 public class MuleSetPropertiesRule extends SetPropertiesRule 25 { 26 protected PlaceholderProcessor processor; 27 28 public MuleSetPropertiesRule() 29 { 30 processor = new PlaceholderProcessor(); 31 } 32 33 public MuleSetPropertiesRule(PlaceholderProcessor processor) 34 { 35 this.processor = processor; 36 } 37 38 public MuleSetPropertiesRule(String [] strings, String [] strings1) 39 { 40 super(strings, strings1); 41 processor = new PlaceholderProcessor(); 42 } 43 44 public MuleSetPropertiesRule(String [] strings, String [] strings1, PlaceholderProcessor processor) 45 { 46 super(strings, strings1); 47 this.processor = processor; 48 } 49 50 public void begin(String s1, String s2, Attributes attributes) throws Exception 51 { 52 attributes = processor.processAttributes(attributes, s2); 53 super.begin(attributes); 54 } 55 } 56 | Popular Tags |