resMgr = UIMAFramework.newDefaultResourceManager();
}
// get a Logger for this class and set its ResourceManager so that
// UIMA extension ClassLoader is used to locate message digests.
Logger logger = UIMAFramework.getLogger(this.getClass());
logger.setResourceManager(resMgr);
ConfigurationManager configMgr = null;
if (aAdditionalParams != null) {
configMgr = (ConfigurationManager)aAdditionalParams.get(PARAM_CONFIG_MANAGER);
}
if (configMgr == null) {
configMgr = UIMAFramework.newConfigurationManager();
}
// create and initialize UIMAContext
mUimaContextAdmin = UIMAFramework.newUimaContext(logger, resMgr, configMgr);
} else {
// configure logger of the UIMA context so that class-specific logging
// levels and UIMA extension classLoader will work
// get a Logger for this class and set its ResourceManager so that
// UIMA extension ClassLoader is used to locate message digests.
Logger logger = UIMAFramework.getLogger(this.getClass());
logger.setResourceManager(mUimaContextAdmin.getResourceManager());
mUimaContextAdmin.setLogger(logger);
}
// if this is a local resource (instantiated from a ResourceCreationSpecifier),
// initialize the ResourceManager and UIMA Context.