Class AxisResourceServiceManager


  • public class AxisResourceServiceManager
    extends Object
    Utility class for deploying Resources as Axis (SOAP) services. This class mantains a map between Axis service names and the ResourceService_impl classes that provide the implementation for those service names. This map is maintained as static data on this class so that it persists between invocations of the Axis services.

    SOAP service implementation classes call the static getServiceImpl(Class) method from their constructors. The service's name and configuration parameters will be read from the Axis MessageContext. If a ResourceService_impl instance has already been registered under this service's name, that instance will be returned. Otherwise, a new ResourceService_impl will be created.

    • Field Detail

      • PARAM_RESOURCE_SPECIFIER_PATH

        public static final String PARAM_RESOURCE_SPECIFIER_PATH
        The name of the deployment parameter whose value is the path to an XML resource specifier. This resource specifier is used to constuct Resource instances that process the requests received by this service. A value for this option must be speciifed in the deployment descriptor for this service.
        See Also:
        Constant Field Values
      • PARAM_NUM_INSTANCES

        public static final String PARAM_NUM_INSTANCES
        The name of the deployment parameter whose value is the number of instances of the Resource (specified by PARAM_RESOURCE_SPECIFIER_PATH) to be created. The Resources are kept in a pool and used to service requests. A value for this option must be speciifed in the deployment descriptor for this service.
        See Also:
        Constant Field Values
      • PARAM_ENABLE_LOGGING

        public static final String PARAM_ENABLE_LOGGING
        The name of the deployment parameter whose value is a boolean indicating whether to write log messages during each service invocation. This currently applies only to Analysis Engine services.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AxisResourceServiceManager

        public AxisResourceServiceManager()
    • Method Detail

      • getServiceImpl

        public static ResourceService_impl getServiceImpl​(Class aServiceImplClass)
                                                   throws org.apache.axis.AxisFault
        Gets a ResourceService_impl class to be used to process an request.This method retrieves the service name and configuration parameters from the Axis MessageContext. If a ResourceService_impl object already exists for that service name, that object will be returned. Otherwise, a new ResourceService_impl object will be created from the information in the MessageContext.
        Parameters:
        aServiceImplClass - the class that will be instantiated when a new ResourceService_impl is to be created. This must be a subclass of ResourceService_impl.
        Throws:
        org.apache.axis.AxisFault - if the configuration information could not be read