Skip to content

Commit

Permalink
Update README.md (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
h908714124 authored Dec 8, 2023
1 parent 4ab0e35 commit 953d527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[![simple-component-compiler](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/simple-component-compiler/badge.svg?color=grey&subject=simple-component-compiler)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/simple-component-compiler)
[![simple-component](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/simple-component/badge.svg?subject=simple-component)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/simple-component)

A minimal dependency injector that uses the following annotations (from `javax.inject` or `jakarta.inject`):
A minimal dependency injector that 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`.

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

### The `@Scope` and `@Singleton` annotations are ignored.

Instead, you have the "same key, same bean" rule:
Expand Down

0 comments on commit 953d527

Please sign in to comment.