1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.providers.soap.axis.extensions; |
12 | |
|
13 | |
import java.util.ArrayList; |
14 | |
import java.util.Iterator; |
15 | |
import java.util.List; |
16 | |
|
17 | |
import org.apache.axis.AxisEngine; |
18 | |
import org.apache.axis.ConfigurationException; |
19 | |
import org.apache.axis.EngineConfiguration; |
20 | |
import org.apache.axis.configuration.SimpleProvider; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
public class MuleConfigProvider extends SimpleProvider |
30 | |
{ |
31 | |
private EngineConfiguration engineConfiguration; |
32 | |
|
33 | |
public MuleConfigProvider(EngineConfiguration engineConfiguration) |
34 | |
{ |
35 | 0 | super(engineConfiguration); |
36 | 0 | this.engineConfiguration = engineConfiguration; |
37 | 0 | } |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
public void configureEngine(AxisEngine engine) throws ConfigurationException |
44 | |
{ |
45 | 0 | synchronized (this) |
46 | |
{ |
47 | 0 | engineConfiguration.configureEngine(engine); |
48 | 0 | super.configureEngine(engine); |
49 | 0 | } |
50 | 0 | } |
51 | |
|
52 | |
public Iterator getAxisDeployedServices() throws ConfigurationException |
53 | |
{ |
54 | 0 | return engineConfiguration.getDeployedServices(); |
55 | |
} |
56 | |
|
57 | |
public Iterator getAllDeployedServices() throws ConfigurationException |
58 | |
{ |
59 | 0 | List services = new ArrayList(); |
60 | 0 | Iterator iter = engineConfiguration.getDeployedServices(); |
61 | 0 | while (iter.hasNext()) |
62 | |
{ |
63 | 0 | services.add(iter.next()); |
64 | |
} |
65 | 0 | iter = super.getDeployedServices(); |
66 | 0 | while (iter.hasNext()) |
67 | |
{ |
68 | 0 | services.add(iter.next()); |
69 | |
} |
70 | 0 | return services.iterator(); |
71 | |
} |
72 | |
} |