org.apache.uima.collection.base_cpm
Class CasDataInitializer_ImplBase

java.lang.Object
  extended by org.apache.uima.resource.Resource_ImplBase
      extended by org.apache.uima.resource.ConfigurableResource_ImplBase
          extended by org.apache.uima.collection.base_cpm.CasDataInitializer_ImplBase
All Implemented Interfaces:
CasDataInitializer, ConfigurableResource, Resource

Deprecated. As of v2.0, CAS Initializers are deprecated. A component that performs an operation like HTML detagging should instead be implemented as a "multi-Sofa" annotator. See XmlDetagger for an example.

@Deprecated
public abstract class CasDataInitializer_ImplBase
extends ConfigurableResource_ImplBase
implements CasDataInitializer

Base class from which to extend when writing CAS Initializers that use the CasData interface to access the CAS.


Field Summary
 
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
 
Constructor Summary
CasDataInitializer_ImplBase()
          Deprecated.  
 
Method Summary
 ProcessingResourceMetaData getCasInitializerMetaData()
          Deprecated. Gets the metadata that describes this CasDataInitializer.
 ProcessingResourceMetaData getProcessingResourceMetaData()
          Deprecated.  
 void initialize()
          Deprecated. This method is called during initialization, and does nothing by default.
 boolean initialize(ResourceSpecifier aSpecifier, Map<String,Object> aAdditionalParams)
          Deprecated. Called by the framework to initialize this CAS Initializer.
 
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
destroy, getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.collection.base_cpm.CasDataInitializer
initializeCas
 
Methods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from interface org.apache.uima.resource.Resource
destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
 

Constructor Detail

CasDataInitializer_ImplBase

public CasDataInitializer_ImplBase()
Deprecated. 
Method Detail

initialize

public boolean initialize(ResourceSpecifier aSpecifier,
                          Map<String,Object> aAdditionalParams)
                   throws ResourceInitializationException
Deprecated. 
Called by the framework to initialize this CAS Initializer. Subclasses should NOT override this method; instead they should override the zero-argument initialize() method and access metadata via the getProcessingResourceMetaData() method. This method is non-final only for legacy reasons.

Specified by:
initialize in interface Resource
Overrides:
initialize in class Resource_ImplBase
Parameters:
aSpecifier - specifies how to create a resource or locate an existing resource service.
aAdditionalParams - a Map containing additional parameters. May be null if there are no parameters. Each class that implements this interface can decide what additional parameters it supports.
Returns:
true if and only if initialization completed successfully. Reutrns false if the given ResourceSpecifier is not of an appropriate type for this Resource. If the ResourceSpecifier is of an appropriate type but is invalid or if some other failure occurs, an exception should be thrown.
Throws:
ResourceInitializationException - if a failure occurs during initialization.
See Also:
Resource.initialize(org.apache.uima.resource.ResourceSpecifier, java.util.Map)

initialize

public void initialize()
                throws ResourceInitializationException
Deprecated. 
This method is called during initialization, and does nothing by default. Subclasses should override it to perform one-time startup logic.

Throws:
ResourceInitializationException - if a failure occurs during initialization.

getProcessingResourceMetaData

public ProcessingResourceMetaData getProcessingResourceMetaData()
Deprecated. 
See Also:
CasProcessor.getProcessingResourceMetaData()

getCasInitializerMetaData

public ProcessingResourceMetaData getCasInitializerMetaData()
Deprecated. 
Description copied from interface: CasDataInitializer
Gets the metadata that describes this CasDataInitializer.

Specified by:
getCasInitializerMetaData in interface CasDataInitializer
Returns:
an object containing all metadata for this CasDataInitializer


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.