Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * $Id: MuleConfigProvider.java 10489 2008-01-23 17:53:38Z dfeist $
  * --------------------------------------------------------------------------------------
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
  *
  * The software in this package is published under the terms of the CPAL v1.0
  * license, a copy of which has been included with this distribution in the
  * LICENSE.txt file.
  */
package org.mule.transport.soap.axis.extensions;
import  org.apache.axis.AxisEngine;
import  org.apache.axis.ConfigurationException;
import  org.apache.axis.EngineConfiguration;
import  org.apache.axis.configuration.SimpleProvider;

MuleConfigProvider is needed because the Simple Provider does not list services in the defaultConfiguration.
public class MuleConfigProvider extends SimpleProvider
    private EngineConfiguration engineConfiguration;
    public MuleConfigProvider(EngineConfiguration engineConfiguration)
    {
        super(engineConfiguration);
        this. = engineConfiguration;
    }

    
Configure an AxisEngine. Right now just calls the default configuration if there is one, since we don't do anything special.
    public void configureEngine(AxisEngine enginethrows ConfigurationException
    {
        synchronized (this)
        {
            .configureEngine(engine);
            super.configureEngine(engine);
        }
    }
    public Iterator getAxisDeployedServices() throws ConfigurationException
    {
        return .getDeployedServices();
    }
    public Iterator getAllDeployedServices() throws ConfigurationException
    {
        List services = new ArrayList();
        Iterator iter = .getDeployedServices();
        while (iter.hasNext())
        {
            services.add(iter.next());
        }
        iter = super.getDeployedServices();
        while (iter.hasNext())
        {
            services.add(iter.next());
        }
        return services.iterator();
    }
New to GrepCode? Check out our FAQ X