public class AxisResourceServiceManager
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
AxisResourceServiceManager() |
Modifier and Type | Method and Description |
---|---|
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. |
public static final java.lang.String PARAM_RESOURCE_SPECIFIER_PATH
public static final java.lang.String PARAM_NUM_INSTANCES
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.public static final java.lang.String PARAM_ENABLE_LOGGING
public static ResourceService_impl getServiceImpl(java.lang.Class aServiceImplClass) throws org.apache.axis.AxisFault
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.aResourceImplClass
- the class that will be instantiated when a new ResourceService_impl
is
to be created. This must be a subclass of ResourceService_impl.org.apache.axis.AxisFault
- if the configuration information could not be readCopyright © 2012. All Rights Reserved.