FileDocCategorySizeDatePackage
WSDDHandlerProvider.javaAPI DocApache Axis 1.42096Sat Apr 22 18:57:28 BST 2006org.apache.axis.deployment.wsdd.providers

WSDDHandlerProvider

public class WSDDHandlerProvider extends org.apache.axis.deployment.wsdd.WSDDProvider
This is a simple provider for using Handler-based services which don't need further configuration (such as Java classes, etc).
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetName()

        return WSDDConstants.PROVIDER_HANDLER;
    
public org.apache.axis.HandlernewProviderInstance(org.apache.axis.deployment.wsdd.WSDDService service, org.apache.axis.EngineConfiguration registry)

        String providerClass = service.getParameter("handlerClass");
        if (providerClass == null) {
            throw new ConfigurationException(Messages.getMessage("noHandlerClass00"));
        }
        
        Class _class = ClassUtils.forName(providerClass);
        
        if (!(Handler.class.isAssignableFrom(_class))) {
            throw new ConfigurationException(Messages.getMessage("badHandlerClass00",
                                                       _class.getName()));
        }

        return (Handler)_class.newInstance();