public abstract class ResourceServiceAdapter extends Resource_ImplBase
ResourceService_impl
rather than a local instance of a Resource
. This is an
abstract base class that specific resource adapter implementations may extend.
This class implements the Resource
interface and encapsulates all communications with a
remote ResourceService
. Thus, applications can interact with this adapter in the
same way they would interact with any Resource
, and can be completely unaware of the
fact that a remote ResourceService
is being used.
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
Constructor and Description |
---|
ResourceServiceAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Releases all resources held by this
Resource . |
ResourceMetaData |
getMetaData()
Gets the metadata that describes this
Resource . |
protected ResourceServiceStub |
getStub()
Gets the stub to be used to communicate with the remote service.
|
protected void |
setStub(ResourceServiceStub aStub)
Sets the stub to be used to communicate with the remote service.
|
getCasManager, getLogger, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder
protected void setStub(ResourceServiceStub aStub)
initialize
method.aStub
- the stub for the remote serviceprotected ResourceServiceStub getStub()
public ResourceMetaData getMetaData()
Resource
Resource
.getMetaData
in interface Resource
getMetaData
in class Resource_ImplBase
Resource.getMetaData()
public void destroy()
Resource
Resource
.destroy
in interface Resource
destroy
in class Resource_ImplBase
Resource.destroy()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.