1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.config.builders; |
12 | |
|
13 | |
import org.apache.commons.digester.SetPropertiesRule; |
14 | |
import org.xml.sax.Attributes; |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
public class MuleSetPropertiesRule extends SetPropertiesRule |
22 | |
{ |
23 | |
protected PlaceholderProcessor processor; |
24 | |
|
25 | |
public MuleSetPropertiesRule() |
26 | 0 | { |
27 | 0 | processor = new PlaceholderProcessor(); |
28 | 0 | } |
29 | |
|
30 | |
public MuleSetPropertiesRule(PlaceholderProcessor processor) |
31 | 0 | { |
32 | 0 | this.processor = processor; |
33 | 0 | } |
34 | |
|
35 | |
public MuleSetPropertiesRule(String[] strings, String[] strings1) |
36 | |
{ |
37 | 0 | super(strings, strings1); |
38 | 0 | processor = new PlaceholderProcessor(); |
39 | 0 | } |
40 | |
|
41 | |
public MuleSetPropertiesRule(String[] strings, String[] strings1, PlaceholderProcessor processor) |
42 | |
{ |
43 | 0 | super(strings, strings1); |
44 | 0 | this.processor = processor; |
45 | 0 | } |
46 | |
|
47 | |
public void begin(String s1, String s2, Attributes attributes) throws Exception |
48 | |
{ |
49 | 0 | attributes = processor.processAttributes(attributes, s2); |
50 | 0 | super.begin(attributes); |
51 | 0 | } |
52 | |
} |