Skip to content

Commit

Permalink
Merge pull request #399 from avaje/SentryMan-patch-1
Browse files Browse the repository at this point in the history
Add Spring DI Table
  • Loading branch information
SentryMan authored Sep 6, 2023
2 parents 20973eb + c7dc74e commit ae7ef71
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,21 @@ module org.example {
- Provides API to obtain all bean instances that have an annotation
- Integration with server-side web frameworks Javalin, Helidon

## Spring DI

For comparison with Spring DI look at https://avaje.io/inject/#spring

## Spring DI comparison

| Spring | Avaje
| :--- | :--- |
| @Component, @Service, @Repository | [@Singleton](https://avaje.io/inject/#singleton) |
| FactoryBean<T> | [Provider<T>](https://avaje.io/inject/#provider) |
| @Inject, @Autowired | [@Inject](https://avaje.io/inject/#inject) |
| @Autowired(required=false) |[@Inject @Nullable](https://avaje.io/inject/#nullable) or [@Inject Optional<T>](https://avaje.io/inject/#optional) |
| @PostConstruct| [@PostConstruct](https://avaje.io/inject/#post-construct) |
| @PreDestroy| [@PreDestroy](https://avaje.io/inject/#pre-destroy) |
| @Configuration and @Bean | [@Factory and @Bean](https://avaje.io/inject/#factory) |
| @Conditional | [@RequiresBean and @RequiresProperty](https://avaje.io/inject/#conditional) |
| @Primary | [@Primary](https://avaje.io/inject/#primary) |
| @Secondary | [@Secondary](https://avaje.io/inject/#secondary) |
| @Profile | [@Profile](https://avaje.io/inject/#profile) |

## Generated Code

Expand Down

0 comments on commit ae7ef71

Please sign in to comment.