Skip to content

Commit

Permalink
remove @provides from README (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 authored Jan 9, 2024
1 parent 20d0bd0 commit 79ea03a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ class CoffeeApp {
```

This dependency injector uses the following annotations:
1. `@Inject` declares an injection point. It can be a constructor or a static method.
2. `@Provides` declares an injection point within the component. It must be a static method.
3. `@Qualifier` and its default implementation `@Named`.
4. And of course, `@Component`, `@Component.Factory` and `@Component.Builder`.
1. `@Inject` declares an injection point. It can be a constructor or a static method in the bean class. It can also be a static method in the component class.
2. `@Qualifier` and its default implementation `@Named`.
3. And of course, `@Component`, `@Component.Factory` and `@Component.Builder`.

Note this is not a complete implementation of `javax.inject` or `jakarta.inject`, because:

Expand Down

0 comments on commit 79ea03a

Please sign in to comment.