Class ChildUimaContext_impl

    • Method Detail

      • initializeRoot

        public void initializeRoot​(Logger aLogger,
                                   ResourceManager aResourceManager,
                                   ConfigurationManager aConfigurationManager)
        Description copied from interface: UimaContextAdmin
        Initializes a root UimaContext.
        Specified by:
        initializeRoot in interface UimaContextAdmin
        Parameters:
        aLogger - the logger that will be returned by this UimaContext's UimaContext.getLogger() method.
        aResourceManager - the ResourceManager that will be used by this UimaContext to locate and access external resource.
        aConfigurationManager - the ConfigurationManager that will be used by this UimaContext to access its configuration parameter settings.
      • getInstrumentationFacility

        public InstrumentationFacility getInstrumentationFacility()
        Gets the InstrumentationFacility to be used within this AnalysisEngine.
        Specified by:
        getInstrumentationFacility in interface UimaContext
        Returns:
        the InstrumentationFacility to be used within this AnalysisEngine
      • getResourceManager

        public ResourceManager getResourceManager()
        Gets the ResourceManager used by this UimaContext to locate and access external resources
        Specified by:
        getResourceManager in interface UimaContextAdmin
        Returns:
        the ResourceManager
      • setPearResourceManager

        public void setPearResourceManager​(ResourceManager resourceManager)
        Set the Pear resource manager, to be used instead of any containing Resource Manager.
        Parameters:
        resourceManager - -
      • getConfigurationManager

        public ConfigurationManager getConfigurationManager()
        Description copied from interface: UimaContextAdmin
        Gets the ConfigurationManager instance used by this UimaContext to resolve configuration parameter resource accesses.
        Specified by:
        getConfigurationManager in interface UimaContextAdmin
        Returns:
        the ConfigurationManager instance for this UimaContext
      • setProcessTrace

        public void setProcessTrace​(ProcessTrace aProcessTrace)
        Sets the current ProcessTrace object, which will receive trace events generated by the InstrumentationFacility.

        This method is to be called from the Analysis Engine, not the Annotator, so it is not part of the AnnotatorContext interface.

        Specified by:
        setProcessTrace in interface UimaContextAdmin
        Parameters:
        aProcessTrace - the ProcessTrace object to receive trace events
      • getLogger

        public Logger getLogger()
        Description copied from interface: UimaContext
        Gets the Logger to which log output will be sent. UIMA components should use this facility rather than writing to their own log files (or to stdout).
        Specified by:
        getLogger in interface UimaContext
        Returns:
        an instance of a logger for use by this annotator.
        See Also:
        AnnotatorContext.getLogger()
      • getSession

        public Session getSession()
        Description copied from interface: UimaContext
        Returns the Session object, which can be used to store data that pertains to a particular client session. All data that must persist across requests must be stored in the Session object and NOT in component instance variables. In some service deployments, a single component instance may serve multiple clients. In that case, the service wrapper may provide a different Session object for each client, and this method would return the appropriate Session object for the component to use for the current call.

        Note that Session support is NOT implemented in any of the service wrappers (Vinci, SOAP) currently provided in the UIMA SDK.

        Specified by:
        getSession in interface UimaContext
        Returns:
        the current Session object
      • setSession

        public void setSession​(Session aSession)
        Description copied from interface: UimaContextAdmin
        Sets the current session object. A default Session object is created when the UimaContext is created. In a multi-client deployment, the deployment wrapper is responsible for ensuring that an appropriate Session object is installed here prior to invoking components that use this UimaContext.
        Specified by:
        setSession in interface UimaContextAdmin
        Parameters:
        aSession - the session object