Last active
August 23, 2018 19:44
-
-
Save billybong/571dbd8062127b8a6720bcdaaaacb852 to your computer and use it in GitHub Desktop.
DI without framework, Java
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
interface Factories { | |
default Optional<MyService> myService(){return Optional.empty();} | |
default Optional<RemoteApi> remoteApi(){return Optional.empty();} | |
static Factories factories(){return new Factories(){};} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment