From 79ea03a4ddeb69330f7f5a3f402a8c514516651b Mon Sep 17 00:00:00 2001 From: h908714124 Date: Tue, 9 Jan 2024 16:24:22 +0100 Subject: [PATCH] remove @Provides from README (#64) --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a35c382..e29f14d 100644 --- a/README.md +++ b/README.md @@ -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: