private String getConfiguration(ConfigKey pKey) { // TODO: Use fragments and/or configuration service if available. String value = bundleContext.getProperty(CONFIG_PREFIX + "." + pKey.getKeyValue()); if (value == null) { value = pKey.getDefaultValue(); } return value; }
/** * Get a processing configuration as a boolean value * * @param pConfigKey configuration to lookup * @return boolean value of the configuration, the default value or false if the default value is * null */ public Boolean getParameterAsBool(ConfigKey pConfigKey) { String booleanS = getParameter(pConfigKey); return Boolean.parseBoolean(booleanS != null ? booleanS : pConfigKey.getDefaultValue()); }