Skip to content

Instantly share code, notes, and snippets.

@norbertpotocki
Created March 17, 2016 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norbertpotocki/eac0a927ca2df45c2a0b to your computer and use it in GitHub Desktop.
Save norbertpotocki/eac0a927ca2df45c2a0b to your computer and use it in GitHub Desktop.
Direct configuration injection (won’t reload as config changes)
String defaultQuery = configurationProvider.getProperty("search.defaultQuery", String.class);
if(queryEmpty()) {
return defaultQuery;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment