Skip to content

Commit 6aeaa19

Browse files
nkjackzhangsnicoll
authored andcommitted
Add the injection point for the Provider
See gh-1100
1 parent 6aa5931 commit 6aeaa19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/asciidoc/core-beans.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5784,6 +5784,11 @@ other beans through a `Provider.get()` call. As a variant of the example above:
57845784
public class SimpleMovieLister {
57855785
57865786
private Provider<MovieFinder> movieFinder;
5787+
5788+
@Inject
5789+
public void setMovieFinder(Provider<MovieFinder> movieFinder) {
5790+
this.movieFinder = movieFinder;
5791+
}
57875792
57885793
public void listMovies() {
57895794
this.movieFinder.get().findMovies(...);

0 commit comments

Comments
 (0)