Class ResourceService_impl
java.lang.Object
org.apache.uima.resource.service.impl.ResourceService_impl
- Direct Known Subclasses:
AnalysisEngineService_impl
Convenience base class for Resource Service implementations. This class is independent of the
deployment technology used to deploy the service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets metadata for this Resource service.protected Resource
Gets the Resource that delivers the functionality for this resource.Gets the Class of resource that provides the functionality for this service.void
initialize
(ResourceSpecifier aResourceSpecifier, Map<String, Object> aResourceInitParams) Initializes this ResourceService_impl.
-
Constructor Details
-
ResourceService_impl
public ResourceService_impl()
-
-
Method Details
-
initialize
public void initialize(ResourceSpecifier aResourceSpecifier, Map<String, Object> aResourceInitParams) throws ResourceInitializationExceptionInitializes this ResourceService_impl. This method must be called before any other methods on this class may be called.- Parameters:
aResourceSpecifier
- specifier that describes how to create the resources that provide the functionality for this service.aResourceInitParams
- additional parameters to be passed on to the Resource Factory.- Throws:
ResourceInitializationException
- -
-
getMetaData
Gets metadata for this Resource service.- Returns:
- -
- Throws:
ResourceServiceException
- -
-
getResourceClass
Gets the Class of resource that provides the functionality for this service. This information is used in theinitialize(ResourceSpecifier,Map)
method in order to create the Resource object. Subclasses may override this method to specify which resource class is to be created.- Returns:
- the Resource Class for this service
-
getResource
Gets the Resource that delivers the functionality for this resource.- Returns:
- the Resource Pool
-