Class JCasAnnotator_ImplBase

All Implemented Interfaces:
AnalysisComponent
Direct Known Subclasses:
BaselineTagger, Evaluator, ExternalResourceExample.Annotator, ExternalResourceExample2.Annotator, ExternalResourceExample3.Annotator2, GetStartedQuickAE, GoldTagger, RoomNumberAnnotator, RoomNumberAnnotator, SentenceAndTokenCopier, UimaAcronymAnnotator, UimaMeetingAnnotator, ViewCreatorAnnotator, ViewTextCopierAnnotator

public abstract class JCasAnnotator_ImplBase extends JCasAnnotator_ImplBase
Base class for JCas annotators which initializes itself based on annotations.
  • Constructor Details

    • JCasAnnotator_ImplBase

      public JCasAnnotator_ImplBase()
  • Method Details

    • initialize

      public void initialize(UimaContext context) throws ResourceInitializationException
      Description copied from interface: AnalysisComponent
      Performs any startup tasks required by this component. The framework calls this method only once, just after the AnalysisComponent has been instantiated.

      The framework supplies this AnalysisComponent with a reference to the UimaContext that it will use, for example to access configuration settings or resources. This AnalysisComponent should store a reference to its the UimaContext for later use.

      Specified by:
      initialize in interface AnalysisComponent
      Overrides:
      initialize in class AnalysisComponent_ImplBase
      Parameters:
      context - Provides access to services and resources managed by the framework. This includes configuration parameters, logging, and access to external resources.
      Throws:
      ResourceInitializationException - if this AnalysisComponent cannot initialize successfully.