Package org.apache.uima.resource.impl
Class ConfigurationManager_impl
- java.lang.Object
-
- org.apache.uima.resource.impl.ConfigurationManagerImplBase
-
- org.apache.uima.resource.impl.ConfigurationManager_impl
-
- All Implemented Interfaces:
ConfigurationManager
public class ConfigurationManager_impl extends ConfigurationManagerImplBase
Basic standalone Configuration Manager implmentation.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLOG_RESOURCE_BUNDLEresource bundle for log messagesprivate java.util.Map<java.lang.String,java.lang.Object>mSharedParamMapMap containing configuration parameter values and links for parameter values shared by all sessions.-
Fields inherited from class org.apache.uima.resource.impl.ConfigurationManagerImplBase
GROUP_SEPARATOR, mLinkMap, SESSION_CONFIGURATION_KEY
-
-
Constructor Summary
Constructors Constructor Description ConfigurationManager_impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.ObjectcreateParam(java.lang.String value, java.lang.String paramType)private <T> java.lang.ObjectcreateParamForClass(java.lang.String value, java.lang.Class<T> clas)private java.lang.ObjectcreateParams(java.lang.String[] values, java.lang.String paramType)private <T> java.lang.ObjectcreateParamsForClass(java.lang.String[] values, java.lang.Class<T> clas)protected voiddeclareParameters(java.lang.String aGroupName, ConfigurationParameter[] aParams, ConfigurationParameterSettings aSettings, java.lang.String aContextName, Settings aExternalOverrides)Called during creation of a new context.protected java.lang.ObjectlookupSharedParamNoLinks(java.lang.String aCompleteName)Looks up the value of a shared parameter, but does NOT follow links.-
Methods inherited from class org.apache.uima.resource.impl.ConfigurationManagerImplBase
createContext, getConfigParameterDeclarations, getConfigParameterValue, getConfigParameterValue, getCurrentConfigParameterSettings, getLink, getParameterExpectedValueClass, getSession, lookup, makeQualifiedName, reconfigure, setConfigParameterValue, setConfigParameterValue, setSession
-
-
-
-
Field Detail
-
LOG_RESOURCE_BUNDLE
protected static final java.lang.String LOG_RESOURCE_BUNDLE
resource bundle for log messages- See Also:
- Constant Field Values
-
mSharedParamMap
private java.util.Map<java.lang.String,java.lang.Object> mSharedParamMap
Map containing configuration parameter values and links for parameter values shared by all sessions. Can't (currently) be a concurrentHashMap because it stores nulls
-
-
Method Detail
-
declareParameters
protected void declareParameters(java.lang.String aGroupName, ConfigurationParameter[] aParams, ConfigurationParameterSettings aSettings, java.lang.String aContextName, Settings aExternalOverrides) throws ResourceConfigurationExceptionDescription copied from class:ConfigurationManagerImplBaseCalled during creation of a new context. Declares parameters, optionally in a group. Concrete subclasses will likely want to override this to set up any necessary data structures.- Overrides:
declareParametersin classConfigurationManagerImplBase- Parameters:
aGroupName- name of parameter group, null if noneaParams- parameter declarationsaSettings- settings for parametersaContextName- name of context containing this parameteraExternalOverrides- settings for parameters with external overrides- Throws:
ResourceConfigurationException- passthru
-
lookupSharedParamNoLinks
protected java.lang.Object lookupSharedParamNoLinks(java.lang.String aCompleteName)
Description copied from class:ConfigurationManagerImplBaseLooks up the value of a shared parameter, but does NOT follow links. Concrete subclasses must implement this to do the actual retrieval of configuration parameter values.- Specified by:
lookupSharedParamNoLinksin classConfigurationManagerImplBase- Parameters:
aCompleteName- complete name, of the form context/parameter$group- Returns:
- value of parameter, or null if no value assigned
-
createParam
private java.lang.Object createParam(java.lang.String value, java.lang.String paramType) throws ResourceConfigurationException- Throws:
ResourceConfigurationException
-
createParams
private java.lang.Object createParams(java.lang.String[] values, java.lang.String paramType)
-
createParamForClass
private <T> java.lang.Object createParamForClass(java.lang.String value, java.lang.Class<T> clas) throws ResourceConfigurationException- Throws:
ResourceConfigurationException
-
createParamsForClass
private <T> java.lang.Object createParamsForClass(java.lang.String[] values, java.lang.Class<T> clas)
-
-