public void load(Reader reader) throws IOException { storage.loadLayout(reader, true); substitute(callback); }
public void load(Reader reader) throws IOException { storage.loadLayout(reader, true); substitute(callback); }
public void load(Reader reader) throws IOException { storage.loadLayout(reader, true); substitute(callback); }
public void substitute(final SubstitutionCallback cb) { if (!substitute) { return; } final SubstitutionCallback callback = cb != null ? cb : new SubstitutionCallback() { public String getValue(String name, String key, String value) { if (value.startsWith(ENV_PREFIX)) { return System.getenv(value.substring(ENV_PREFIX.length())); } else { return System.getProperty(value); } } }; //wrap(new BundleContextSubstitutionCallback(null)); Map<String, TypedProperties> props = Collections.singletonMap("root", this); substitute(props, prepare(props), callback, true); }
public void substitute(final SubstitutionCallback cb) { if (!substitute) { return; } final SubstitutionCallback callback = cb != null ? cb : new SubstitutionCallback() { public String getValue(String name, String key, String value) { if (value.startsWith(ENV_PREFIX)) { return System.getenv(value.substring(ENV_PREFIX.length())); } else { return System.getProperty(value); } } }; //wrap(new BundleContextSubstitutionCallback(null)); Map<String, TypedProperties> props = Collections.singletonMap("root", this); substitute(props, prepare(props), callback, true); }
public void substitute(final SubstitutionCallback cb) { if (!substitute) { return; } final SubstitutionCallback callback = cb != null ? cb : new SubstitutionCallback() { public String getValue(String name, String key, String value) { if (value.startsWith(ENV_PREFIX)) { return System.getenv(value.substring(ENV_PREFIX.length())); } else { return System.getProperty(value); } } }; //wrap(new BundleContextSubstitutionCallback(null)); Map<String, TypedProperties> props = Collections.singletonMap("root", this); substitute(props, prepare(props), callback, true); }
TypedProperties.substitute(originals, dynamic, (pid, key, value) -> { if (value != null) { for (PlaceholderResolver resolver : resolvers) {
TypedProperties.substitute(originals, dynamic, (pid, key, value) -> { if (value != null) { for (PlaceholderResolver resolver : resolvers) {