Class Annotator_ImplBase
- java.lang.Object
-
- org.apache.uima.analysis_engine.annotator.Annotator_ImplBase
-
- All Implemented Interfaces:
BaseAnnotator
- Direct Known Subclasses:
GenericAnnotator_ImplBase,JTextAnnotator_ImplBase
@Deprecated public abstract class Annotator_ImplBase extends java.lang.Object implements BaseAnnotator
Deprecated.As of release 2.3.0, use CasAnnotator_ImplBase or JCasAnnotator_ImplBase insteadBase class for annotators in UIMA SDK v1.x. As of v2.0, annotators should extendCasAnnotator_ImplBaseorJCasAnnotator_ImplBase.
-
-
Constructor Summary
Constructors Constructor Description Annotator_ImplBase()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()Deprecated.This default implementation does nothing.protected voidfinalize()Deprecated.protected AnnotatorContextgetContext()Deprecated.Gets theAnnotatorContextto be used by this Annotator.protected TypeSystemgetTypeSystem()Deprecated.Gets theTypeSystemthat was passed to the most recent call totypeSystemInit(TypeSystem).voidinitialize(AnnotatorContext aContext)Deprecated.The only thing this implementation does is store the AnnotatorContext so that it can be accessed later via thegetContext()method.voidreconfigure()Deprecated.This default implementation callsdestroy()followed byinitialize(AnnotatorContext)andtypeSystemInit(TypeSystem).voidtypeSystemInit(TypeSystem aTypeSystem)Deprecated.The only thing this implementation does is store the TypeSystem so that it can be accessed by thegetTypeSystem()method, and also so that it can be passed back to thetypeSystemInit(TypeSystem)method by the default implementation ofreconfigure().
-
-
-
Method Detail
-
initialize
public void initialize(AnnotatorContext aContext) throws AnnotatorInitializationException, AnnotatorConfigurationException
Deprecated.The only thing this implementation does is store the AnnotatorContext so that it can be accessed later via thegetContext()method.- Specified by:
initializein interfaceBaseAnnotator- Parameters:
aContext- Provides access to external resources that may be used by this annotator. This includes configuration parameters, logging and instrumentation services, and access to external analysis resources.- Throws:
AnnotatorInitializationException- if the annotator cannot initialize itself.AnnotatorConfigurationException- if the configuration specified for this annotator is invalid.- See Also:
BaseAnnotator.initialize(org.apache.uima.analysis_engine.annotator.AnnotatorContext)
-
typeSystemInit
public void typeSystemInit(TypeSystem aTypeSystem) throws AnnotatorInitializationException, AnnotatorConfigurationException
Deprecated.The only thing this implementation does is store the TypeSystem so that it can be accessed by thegetTypeSystem()method, and also so that it can be passed back to thetypeSystemInit(TypeSystem)method by the default implementation ofreconfigure().- Specified by:
typeSystemInitin interfaceBaseAnnotator- Parameters:
aTypeSystem- the new type system- Throws:
AnnotatorInitializationException- if the annotator cannot initialize itself.AnnotatorConfigurationException- if the configuration specified for this annotator is invalid.- See Also:
BaseAnnotator.typeSystemInit(org.apache.uima.cas.TypeSystem)
-
destroy
public void destroy()
Deprecated.This default implementation does nothing.- Specified by:
destroyin interfaceBaseAnnotator- See Also:
BaseAnnotator.destroy()
-
reconfigure
public void reconfigure() throws AnnotatorConfigurationException, AnnotatorInitializationExceptionDeprecated.This default implementation callsdestroy()followed byinitialize(AnnotatorContext)andtypeSystemInit(TypeSystem). ThetypeSystemInitmethod will be passed the last known TypeSystem.- Specified by:
reconfigurein interfaceBaseAnnotator- Throws:
AnnotatorConfigurationException- if the configuration specified for this annotator is invalid.AnnotatorInitializationException- if the annotator fails to reinitialize itself based on the new configuration.- See Also:
BaseAnnotator.reconfigure()
-
getContext
protected AnnotatorContext getContext()
Deprecated.Gets theAnnotatorContextto be used by this Annotator. TheAnnotatorContextprovides access to external resources that may be used by this annotator. This includes configuration parameters, logging and instrumentation services, and access to text analysis resources.- Returns:
- the Annotator Context
-
getTypeSystem
protected TypeSystem getTypeSystem()
Deprecated.Gets theTypeSystemthat was passed to the most recent call totypeSystemInit(TypeSystem).- Returns:
- the Annotator Context
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-