public class UIMAFramework_impl extends UIMAFramework
UIMAFramework
instead.
This class is a singleton which will be accessed by many threads simulatenously. It must be threadsafe.
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
CAS_INITIAL_HEAP_SIZE, JCAS_CACHE_ENABLED, newContextConfigManager, newContextResourceManager, PROCESS_TRACE_ENABLED, SKIP_USER_JCAS_LOADING, SOCKET_KEEPALIVE_ENABLED
Constructor and Description |
---|
UIMAFramework_impl()
Creates a new UIMAFramework_impl.
|
Modifier and Type | Method and Description |
---|---|
short |
_getBuildRevision()
To be implemented by subclasses; this should return the build revision number of this
implementation.
|
protected Properties |
_getDefaultPerformanceTuningProperties()
To be implemented by subclasses; this should return a Properties object representing the
default performance tuning settings for the framework.
|
protected Logger |
_getLogger()
To be implemented by subclasses; this should return a reference to the UIMA
Logger used
by this implementation. |
protected Logger |
_getLogger(Class component)
To be implemented by subclasses; this should return a reference to the UIMA
Logger of
the specified source class. |
short |
_getMajorVersion()
To be implemented by subclasses; this should return the major version number of this
implementation.
|
short |
_getMinorVersion()
To be implemented by subclasses; this should return the minor version number of this
implementation.
|
protected CompositeResourceFactory |
_getResourceFactory()
Retrieves a reference to the
ResourceFactory used by the UIMA reference
implementation. |
protected ResourceSpecifierFactory |
_getResourceSpecifierFactory()
To be implemented by subclasses; this should return a reference to the
ResourceSpecifierFactory used by this implementation. |
protected XMLParser |
_getXMLParser()
To be implemented by subclasses; this should return a reference to the UIMA
XMLParser
used by this implementation. |
protected void |
_initialize()
To be implemented by subclasses; called from this class's static initializer to complete
initialization of the singleton instance.
|
protected CollectionProcessingManager |
_newCollectionProcessingManager(ResourceManager aResourceManager)
To be implemented by subclasses; this should create a new instance of a class implementing
CollectionProcessingManager . |
protected ConfigurationManager |
_newConfigurationManager()
To be implemented by subclasses; this should return a new instance of the
ConfigurationManager used by this implementation. |
protected ResourceManager |
_newDefaultResourceManager()
To be implemented by subclasses; this should return a new instance of the default
ResourceManager used by this implementation. |
protected ResourceManager |
_newDefaultResourceManagerPearWrapper()
To be implemented by subclasses; this should return a new instance of the default
ResourceManager used by this implementation. |
protected Logger |
_newLogger()
To be implemented by subclasses; this should return a new UIMA
Logger instance. |
protected UimaTimer |
_newTimer()
To be implemented by subclasses; this should return a new UIMA
UimaTimer instance. |
protected UimaContextAdmin |
_newUimaContext()
To be implemented by subclasses; this should return a new instance of the default
UimaContextAdmin used by this implementation. |
protected CollectionProcessingEngine |
_produceCollectionProcessingEngine(CpeDescription aCpeDescription,
Map<String,Object> aAdditionalParams)
To be implemented by subclasses; this should produce a
CollectionProcessingEngine
instance from a cpeDescription . |
protected void |
parseFactoryConfig()
Parses the factoryConfig.xml file and sets up the ResourceFactory, ResourceSpecifierFactory,
and XMLParser.
|
getBuildRevision, getDefaultPerformanceTuningProperties, getInstance, getLogger, getLogger, getMajorVersion, getMinorVersion, getResourceFactory, getResourceSpecifierFactory, getVersionString, getXMLParser, newCollectionProcessingManager, newCollectionProcessingManager, newConfigurationManager, newDefaultResourceManager, newDefaultResourceManagerPearWrapper, newLogger, newTimer, newUimaContext, produceAnalysisEngine, produceAnalysisEngine, produceAnalysisEngine, produceAnalysisEngine, produceCasConsumer, produceCasConsumer, produceCasConsumer, produceCasInitializer, produceCasInitializer, produceCasInitializer, produceCollectionProcessingEngine, produceCollectionProcessingEngine, produceCollectionProcessingEngine, produceCollectionReader, produceCollectionReader, produceCollectionReader, produceResource, produceResource, produceResource, produceTAE, produceTAE, produceTAE, produceTAE
public static final boolean debug
protected void _initialize() throws Exception
UIMAFramework
UIMAFramework.getInstance()
method can be used during initialization._initialize
in class UIMAFramework
Exception
- if initialization failsUIMAFramework._initialize()
public short _getMajorVersion()
UIMAFramework
_getMajorVersion
in class UIMAFramework
UIMAFramework._getMajorVersion()
public short _getMinorVersion()
UIMAFramework
_getMinorVersion
in class UIMAFramework
UIMAFramework._getMinorVersion()
public short _getBuildRevision()
UIMAFramework
_getBuildRevision
in class UIMAFramework
UIMAFramework._getBuildRevision()
protected CompositeResourceFactory _getResourceFactory()
ResourceFactory
used by the UIMA reference
implementation._getResourceFactory
in class UIMAFramework
ResourceFactory
to be used by the applicationprotected ResourceSpecifierFactory _getResourceSpecifierFactory()
ResourceSpecifierFactory
used by this implementation._getResourceSpecifierFactory
in class UIMAFramework
ResourceSpecifierFactory
to be used by the application.protected XMLParser _getXMLParser()
XMLParser
used by this implementation._getXMLParser
in class UIMAFramework
XMLParser
to be used by the application.protected CollectionProcessingManager _newCollectionProcessingManager(ResourceManager aResourceManager)
UIMAFramework
CollectionProcessingManager
._newCollectionProcessingManager
in class UIMAFramework
aResourceManager
- the ResourceManager to be used by the CPMCollectionProcessingManager
to be used by the application.UIMAFramework.newCollectionProcessingManager()
protected Logger _getLogger()
Logger
used
by this implementation._getLogger
in class UIMAFramework
Logger
to be used by the application.protected Logger _getLogger(Class component)
Logger
of
the specified source class._getLogger
in class UIMAFramework
component
- the class to get the logger forLogger
of the specified source classprotected Logger _newLogger()
UIMAFramework
Logger
instance._newLogger
in class UIMAFramework
Logger
instanceUIMAFramework._newLogger()
protected ResourceManager _newDefaultResourceManager()
ResourceManager
used by this implementation._newDefaultResourceManager
in class UIMAFramework
ResourceManager
to be used by the application.protected ResourceManager _newDefaultResourceManagerPearWrapper()
ResourceManager
used by this implementation._newDefaultResourceManagerPearWrapper
in class UIMAFramework
ResourceManager
to be used by the application.protected ConfigurationManager _newConfigurationManager()
ConfigurationManager
used by this implementation._newConfigurationManager
in class UIMAFramework
ConfigurationManager
to be used by the application.protected UimaContextAdmin _newUimaContext()
UIMAFramework
UimaContextAdmin
used by this implementation._newUimaContext
in class UIMAFramework
UimaContextAdmin
to be used by the application.UIMAFramework._newUimaContext()
protected UimaTimer _newTimer()
UIMAFramework
UimaTimer
instance._newTimer
in class UIMAFramework
Timer
instanceUIMAFramework._newTimer()
protected CollectionProcessingEngine _produceCollectionProcessingEngine(CpeDescription aCpeDescription, Map<String,Object> aAdditionalParams) throws ResourceInitializationException
UIMAFramework
CollectionProcessingEngine
instance from a cpeDescription
._produceCollectionProcessingEngine
in class UIMAFramework
aCpeDescription
- an object that specifies how to create an instance of a
CollectionProcessingEngine
.aAdditionalParams
- a Map containing additional parameters to pass to the
CollectionProcessingEngine.initialize(CpeDescription,Map)
method. May be
null
if there are no parameters. Parameter names are defined as constants
on the AnalysisEngine
, and Resource
. Furthermore, the entry under the
key Resource.PARAM_PERFORMANCE_TUNING_SETTINGS
is a map which may contain
settings with keys defined as constants here UIMAFramework
interfaces. For
example this can be used to set performance-tuning settings as described in
UIMAFramework.getDefaultPerformanceTuningProperties()
.CollectionProcessingEngine
instance.ResourceInitializationException
- if a failure occurred during production of the CPE.protected Properties _getDefaultPerformanceTuningProperties()
UIMAFramework
_getDefaultPerformanceTuningProperties
in class UIMAFramework
protected void parseFactoryConfig() throws ParserConfigurationException, SAXException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
ParserConfigurationException
- if the XML parser could not be configuredSAXException
- if factoryConfig.xml could not be parsedClassNotFoundException
- -IllegalAccessException
- -InstantiationException
- -IOException
- -Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.