Created
September 26, 2015 10:38
-
-
Save kaskavalci/7971ab3657c6850cca3a 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
public class FooUser { | |
Provider<List<Foo>> elementsProvided; | |
@Inject | |
public FooUser( Provider<List<Foo>> elementsProvided) { | |
this.elementsProvided= elementsProvided; | |
List<Foo> elements = elementsProvided.get(); | |
//Now you can access the elements! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment