From 0da4060e72b4001e339a6d6ae3a72ae02805e0b2 Mon Sep 17 00:00:00 2001 From: h908714124 Date: Tue, 9 Jan 2024 16:23:21 +0100 Subject: [PATCH] remove @Provides from README --- 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: