@Activate private void activate(Map<String, ?> config, BundleContext context) { this.bundleContext = context; this.loggers = OsgiPropertyUtil.toMap(PropertiesUtil.toStringArray( config.get(PROP_LOGGER_NAMES), new String[0]), "=", true, null); if (loggers != null && !loggers.isEmpty()) { this.pattern = PropertiesUtil.toString(config.get(PROP_MSG_PATTERN), DEFAULT_PATTERN); this.msgCountLimit = PropertiesUtil.toInteger(config.get(PROP_LOG_COUNT_LIMIT), DEFAULT_LIMIT); // Create a single logCollector; this will be used as TurboFilters are register with the execution of // this Servlet this.logCollector = new QueryLogCollector(loggers, pattern, msgCountLimit, checkMDCSupport(context)); } else { this.logCollector = null; } }
final Map<String, String> params = OsgiPropertyUtil.toMap(lines, "=", false, null, true);
effectiveLanguage = XPATH; final String[] lines = StringUtils.split(statement, '\n'); final Map<String, String> params = OsgiPropertyUtil.toMap(lines, "=", false, null, true);