public abstract class Resource_ImplBase extends Resource_ImplBase implements ExternalResourceAware
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 |
---|
Resource_ImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
afterResourcesInitialized()
Called after the external resources have been initialized.
|
String |
getResourceName()
Get the name of the resource.
|
boolean |
initialize(ResourceSpecifier aSpecifier,
Map<String,Object> aAdditionalParams) |
destroy, getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder
public boolean initialize(ResourceSpecifier aSpecifier, Map<String,Object> aAdditionalParams) throws ResourceInitializationException
initialize
in interface Resource
initialize
in class Resource_ImplBase
ResourceInitializationException
public String getResourceName()
ExternalResourceAware
ExternalResourceFactory.bindResourceOnce(org.apache.uima.resource.metadata.ResourceManagerConfiguration, java.lang.String, org.apache.uima.resource.ExternalResourceDescription)
which internally call
ExternalResourceFactory.bindNestedResources(...)
to set the parameter
PARAM_RESOURCE_NAME
.PARAM_RESOURCE_NAME
.getResourceName
in interface ExternalResourceAware
public void afterResourcesInitialized() throws ResourceInitializationException
ExternalResourceAware
afterResourcesInitialized
in interface ExternalResourceAware
ResourceInitializationException
- if an problem occurs in the late initialization.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.