Class Resource_ImplBase

    • Constructor Detail

      • Resource_ImplBase

        public Resource_ImplBase()
    • Method Detail

      • setMetaData

        protected void setMetaData​(ResourceMetaData aMetaData)
        Sets the ResourceMetaData object associated with this Resource. Any previously existing metadata will be replaced.

        Resource subclasses should call this method during initialization in order to set the metadata before any calls to getMetaData() are made.

        Parameters:
        aMetaData - metadata to assign to this Resource
      • getLogger

        public Logger getLogger()
        Get the logger for this UIMA framework class. Note that this is NOT the user's logger in the UimaContext
        Specified by:
        getLogger in interface Resource
        Returns:
        this Resource's logger
      • setLogger

        public void setLogger​(Logger aLogger)
        Set the logger in the current UimaContext for use by user annotators.
        Specified by:
        setLogger in interface Resource
        Parameters:
        aLogger - the logger for this Resource to use
      • getUimaContext

        public UimaContext getUimaContext()
        Description copied from interface: Resource
        Gets the UIMA Context for this Resource. This can be used to access external resources or facilities such as the Logger.
        Specified by:
        getUimaContext in interface Resource
        Returns:
        the UimaContext for use by this Resource
      • getUimaContextAdmin

        public UimaContextAdmin getUimaContextAdmin()
        Gets the Admin interface to this Resource's UimaContext.
        Specified by:
        getUimaContextAdmin in interface Resource
        Returns:
        the administrative interface to this Resource's UimaContext
      • getCasManager

        public CasManager getCasManager()
        Get the CasManager for this Resource. The CasManager manages the creation and pooling of CASes.
        Returns:
        the CasManager
      • loadUserClass

        public java.lang.Class<?> loadUserClass​(java.lang.String name)
                                         throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • getRelativePathResolver

        public RelativePathResolver getRelativePathResolver​(java.util.Map<java.lang.String,​java.lang.Object> aAdditionalParams)
      • withContextHolder

        public void withContextHolder​(java.lang.Runnable userCode)
      • setContextHolderX

        public void setContextHolderX​(Runnable_withException userCode)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setContextHolder

        public UimaContext setContextHolder()