Class AnalysisComponent_ImplBase

    • Constructor Detail

      • AnalysisComponent_ImplBase

        public AnalysisComponent_ImplBase()
    • Method Detail

      • initialize

        public void initialize​(UimaContext aContext)
                        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
        Parameters:
        aContext - 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.
      • batchProcessComplete

        public void batchProcessComplete()
                                  throws AnalysisEngineProcessException
        Description copied from interface: AnalysisComponent
        Completes the processing of a batch of CASes. The size of a batch is determined based on configuration provided by the application that is using this component. The purpose of batchProcessComplete is to give this AnalysisComponent the change to flush information from memory to persistent storage. In the event of an error, this allows the processing to be restarted from the end of the last completed batch.

        If this component's descriptor declares that it is recoverable, then this component is required to be restartable from the end of the last completed batch.

        Specified by:
        batchProcessComplete in interface AnalysisComponent
        Throws:
        AnalysisEngineProcessException - if this component encounters a problem in flushing its state to persistent storage
      • destroy

        public void destroy()
        Description copied from interface: AnalysisComponent
        Frees all resources held by this AnalysisComponent. The framework calls this method only once, when it is finished using this component.
        Specified by:
        destroy in interface AnalysisComponent
      • getContext

        protected final UimaContext getContext()
        Gets the UimaContext for this AnalysisComponent. This provides access to configuration parameters and external resources.
        Returns:
        the UimaContext for this AnalysisComponent
      • getResultSpecification

        protected ResultSpecification getResultSpecification()
        Gets the ResultSpecification for this AnalysisComponent. The ResultSpecification is a set of types and features that this AnalysisComponent is asked to produce. An Analysis Component may (but is not required to) optimize its processing by omitting the generation of any types or features that are not part of the ResultSpecification.
        Returns:
        the ResultSpecification for this Analysis Component to use.