@Deprecated public interface CasInitializer extends ConfigurableResource
CAS
.
CAS Initializers may be used by some CollectionReader
implementations.
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
Modifier and Type | Method and Description |
---|---|
ProcessingResourceMetaData |
getProcessingResourceMetaData()
Deprecated.
Gets the metadata that describes this
CasInitializer . |
void |
initializeCas(Object aObj,
CAS aCAS)
Deprecated.
Reads content and metadata from an Object and initializes a
CAS . |
void |
typeSystemInit(TypeSystem aTypeSystem)
Deprecated.
Informs this CasInitializer that the CAS TypeSystem has changed.
|
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValue
destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLogger
void typeSystemInit(TypeSystem aTypeSystem) throws ResourceInitializationException
In this method, the CasInitializer should use the TypeSystem
to resolve the names of
Type and Features to the actual Type
and
Feature
objects, which can then be used during processing.
aTypeSystem
- the type system to useResourceInitializationException
- if the type system is not compatible with this CAS Initializervoid initializeCas(Object aObj, CAS aCAS) throws CollectionException, IOException
CAS
.aObj
- the object to processaCAS
- the CAS to populateCollectionException
- if an error occurs during initialization of the CASIOException
- if an I/O failure occursProcessingResourceMetaData getProcessingResourceMetaData()
CasInitializer
.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.