Skip to content

Instantly share code, notes, and snippets.

@billybong
Created August 23, 2018 19:46
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 billybong/876aa2b0e26fae3553cbc6fb15bd53e9 to your computer and use it in GitHub Desktop.
Save billybong/876aa2b0e26fae3553cbc6fb15bd53e9 to your computer and use it in GitHub Desktop.
class Bootstrapper {
public Application bootStrap(Config cfg, Factories factories){
var someDependency = constructTheDependency();
var myService = factories.myService().orElseGet(() -> constructTheRealThing(someDependency));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment