Skip to content

Instantly share code, notes, and snippets.

@circlee
Last active February 11, 2019 15:05
Show Gist options
  • Save circlee/f4a31a54ad62c364b85665b9a7dd4ca5 to your computer and use it in GitHub Desktop.
Save circlee/f4a31a54ad62c364b85665b9a7dd4ca5 to your computer and use it in GitHub Desktop.
public synchronized Set<String> refreshEnvironment() {
Map<String, Object> before = extract(
this.context.getEnvironment().getPropertySources());
addConfigFilesToEnvironment();
Set<String> keys = changes(before,
extract(this.context.getEnvironment().getPropertySources())).keySet();
this.context.publishEvent(new EnvironmentChangeEvent(this.context, keys));
return keys;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment