Package org.apache.uima.adapter.soap
Class AxisResourceServiceManager
- java.lang.Object
-
- org.apache.uima.adapter.soap.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 theResourceService_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 aResourceService_impl
instance has already been registered under this service's name, that instance will be returned. Otherwise, a newResourceService_impl
will be created.
-
-
Field Summary
Fields Modifier and Type Field Description static 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 String
PARAM_NUM_INSTANCES
The name of the deployment parameter whose value is the number of instances of the Resource (specified byPARAM_RESOURCE_SPECIFIER_PATH
) to be created.static String
PARAM_RESOURCE_SPECIFIER_PATH
The name of the deployment parameter whose value is the path to an XML resource specifier.
-
Constructor Summary
Constructors Constructor Description AxisResourceServiceManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceService_impl
getServiceImpl(Class aServiceImplClass)
Gets aResourceService_impl
class to be used to process an request.This method retrieves the service name and configuration parameters from the Axis MessageContext.
-
-
-
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 byPARAM_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
-
-
Method Detail
-
getServiceImpl
public static ResourceService_impl getServiceImpl(Class aServiceImplClass) throws org.apache.axis.AxisFault
Gets aResourceService_impl
class to be used to process an request.This method retrieves the service name and configuration parameters from the Axis MessageContext. If aResourceService_impl
object already exists for that service name, that object will be returned. Otherwise, a newResourceService_impl
object will be created from the information in the MessageContext.- Parameters:
aServiceImplClass
- the class that will be instantiated when a newResourceService_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
-
-