Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:38
Show Gist options
  • Save kaskavalci/7971ab3657c6850cca3a to your computer and use it in GitHub Desktop.
Save kaskavalci/7971ab3657c6850cca3a to your computer and use it in GitHub Desktop.
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