Created
August 23, 2018 19:46
-
-
Save billybong/876aa2b0e26fae3553cbc6fb15bd53e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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