1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.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 | |
public class MuleConfigProvider extends SimpleProvider |
27 | |
{ |
28 | |
private EngineConfiguration engineConfiguration; |
29 | |
|
30 | |
public MuleConfigProvider(EngineConfiguration engineConfiguration) |
31 | |
{ |
32 | 372 | super(engineConfiguration); |
33 | 372 | this.engineConfiguration = engineConfiguration; |
34 | 372 | } |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
public void configureEngine(AxisEngine engine) throws ConfigurationException |
41 | |
{ |
42 | 496 | synchronized (this) |
43 | |
{ |
44 | 496 | engineConfiguration.configureEngine(engine); |
45 | 496 | super.configureEngine(engine); |
46 | 496 | } |
47 | 496 | } |
48 | |
|
49 | |
public Iterator getAxisDeployedServices() throws ConfigurationException |
50 | |
{ |
51 | 0 | return engineConfiguration.getDeployedServices(); |
52 | |
} |
53 | |
|
54 | |
public Iterator getAllDeployedServices() throws ConfigurationException |
55 | |
{ |
56 | 0 | List services = new ArrayList(); |
57 | 0 | Iterator iter = engineConfiguration.getDeployedServices(); |
58 | 0 | while (iter.hasNext()) |
59 | |
{ |
60 | 0 | services.add(iter.next()); |
61 | |
} |
62 | 0 | iter = super.getDeployedServices(); |
63 | 0 | while (iter.hasNext()) |
64 | |
{ |
65 | 0 | services.add(iter.next()); |
66 | |
} |
67 | 0 | return services.iterator(); |
68 | |
} |
69 | |
} |