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