org.apache.uima.adapter.soap
Class AxisResourceServiceManager

java.lang.Object
  extended by org.apache.uima.adapter.soap.AxisResourceServiceManager

public class AxisResourceServiceManager
extends java.lang.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 Summary
static java.lang.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.
static java.lang.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.
static java.lang.String PARAM_RESOURCE_SPECIFIER_PATH
          The name of the deployment parameter whose value is the path to an XML resource specifier.
 
Constructor Summary
AxisResourceServiceManager()
           
 
Method Summary
static ResourceService_impl getServiceImpl(java.lang.Class aServiceImplClass)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_RESOURCE_SPECIFIER_PATH

public static final java.lang.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 java.lang.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 java.lang.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(java.lang.Class aServiceImplClass)
                                           throws 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:
aResourceImplClass - the class that will be instantiated when a new ResourceService_impl is to be created. This must be a subclass of ResourceService_impl.
Throws:
AxisFault - if the configuration information could not be read


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.