Skip to content

Commit

Permalink
Improve Module injects documentation
Browse files Browse the repository at this point in the history
State that injects can also be used to scope @Inject annotated classes.
  • Loading branch information
niqo01 committed Feb 24, 2015
1 parent 481c848 commit 6bede9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/dagger/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
public @interface Module {
/**
* Returns classes that object graphs created with this module must be able to
* inject. This includes both classes passed to {@link ObjectGraph#get} and
* the types of instances passed {@link ObjectGraph#inject}.
* inject. This includes both classes passed to {@link ObjectGraph#get},
* the types of instances passed {@link ObjectGraph#inject} and
* {@link javax.inject.Inject} annotated classes that need to be scoped to the
* resulting object graphs.
*
* <p>It is an error to call {@link ObjectGraph#get} or {@link
* ObjectGraph#inject} with a type that isn't listed in the {@code injects}
Expand Down

0 comments on commit 6bede9f

Please sign in to comment.