/** * {@inheritDoc} */ @Override public String[] getStringArray(final String key) { String list = get(key); if (list == null) { return new String[0]; } return parseStringArray(list); }
/** * Loads a single parameter into the configuration. This handles the special directives such as "include". * * @param key the parameter key. * @param value the parameter value. * @param location the location where the parameter was defined. */ private void load(final String key, final String value, final String location) { // Recursive bit if (INCLUDE.equals(key)) { load(parseStringArray(value)); } else { backing.put(key, value); if ("yes".equals(value) || "true".equals(value)) { booleanBacking.add(key); } else { booleanBacking.remove(key); } String history = locations.get(key); if (history == null) { history = location; } else { history = location + "; " + history; } locations.put(key, history); } }