[ https://issues.apache.org/jira/browse/UIMA-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15413606#comment-15413606 ]
Burn Lewis commented on UIMA-5043: ---------------------------------- The default set of external overrides is loaded from the files specified by the system property 'UimaExternalOverrides' but an analysis engine can be created with a different set of overrides by passing ia Settings object in the additional-parameters argument for the produceAnalysisEngine method. These settings may override configuration parameters in this AE and now will also be accessible via the 2 new UimaContext methods described above. But in some applications non-UIMA code needs access to a common set of configuration parameters and the default set of external overrides is a good candidate, so we could add a static method to the UimaFramework class to allow non-UIMA code to share these configuration values. e.g. String paramValue = UimaFramework.getDefaultExternalOverrides().getExternalOverride(paramName); This will also ensure that the framework will share a single copy of the default settings amongst all engines that use them. > Provide method to access individual external override settings > -------------------------------------------------------------- > > Key: UIMA-5043 > URL: https://issues.apache.org/jira/browse/UIMA-5043 > Project: UIMA > Issue Type: Improvement > Components: Core Java Framework > Reporter: Burn Lewis > Assignee: Burn Lewis > Priority: Minor > Fix For: 2.9.0SDK > > > The framework loads the external override settings and uses them in any > configuration parameter that has an external override name attached, Users > have asked for the ability to access these values directly without the > indirection of configuration parameter entries in descriptors. Currently the > complete Settings object that holds all the external override settings loaded > by the framework is accessible via UimaContextAdmin. > An improvement would be to allow individual values to be read using a method > in the UimaContext interface, perhaps: > String getExternalOverride(String name) > String[] getExternalOverrideArray{String name) -- This message was sent by Atlassian JIRA (v6.3.4#6332)