@@ -101,19 +101,19 @@ module org.example {
101
101
102
102
## Spring DI comparison
103
103
104
- | Spring | Avaje
104
+ | Avaje | Spring
105
105
| :--- | :--- |
106
- | @ Component , @ Service , @ Repository | [ @Singleton ] ( https://avaje.io/inject/#singleton ) |
107
- | FactoryBean & lt ; T> | [ Provider< ; T>] ( https://avaje.io/inject/#provider ) |
108
- | @ Inject , @ Autowired | [ @Inject ] ( https://avaje.io/inject/#inject ) |
109
- | @ Autowired (required=false) | [ @Inject @Nullable ] ( https://avaje.io/inject/#nullable ) or [ @Inject Optional< ; T>] ( https://avaje.io/inject/#optional ) |
110
- | @ PostConstruct | [ @PostConstruct ] ( https://avaje.io/inject/#post-construct ) |
111
- | @ PreDestroy | [ @PreDestroy ] ( https://avaje.io/inject/#pre-destroy ) |
112
- | @ Configuration and @ Bean | [ @Factory and @Bean ] ( https://avaje.io/inject/#factory ) |
113
- | @ Conditional | [ @RequiresBean and @RequiresProperty ] ( https://avaje.io/inject/#conditional ) |
114
- | @ Primary | [ @Primary ] ( https://avaje.io/inject/#primary ) |
115
- | @ Secondary | [ @Secondary ] ( https://avaje.io/inject/#secondary ) |
116
- | @ Profile | [ @ Profile ] ( https://avaje.io/inject/#profile ) |
106
+ | [ @Singleton ] ( https://avaje.io/inject/#singleton ) | @ Component , @ Service , @ Repository |
107
+ | [ Provider< ; T>] ( https://avaje.io/inject/#provider ) | FactoryBean & lt ; T> |
108
+ | [ @Inject ] ( https://avaje.io/inject/#inject ) | @ Inject , @ Autowired |
109
+ | [ @Inject @Nullable ] ( https://avaje.io/inject/#nullable ) or [ @Inject Optional< ; T>] ( https://avaje.io/inject/#optional ) | @ Autowired (required=false ) |
110
+ | [ @PostConstruct ] ( https://avaje.io/inject/#post-construct ) | @ PostConstruct |
111
+ | [ @PreDestroy ] ( https://avaje.io/inject/#pre-destroy ) | @ PreDestroy |
112
+ | [ @Factory and @Bean ] ( https://avaje.io/inject/#factory ) | @ Configuration and @ Bean |
113
+ | [ @RequiresBean and @RequiresProperty ] ( https://avaje.io/inject/#conditional ) | @ Conditional |
114
+ | [ @Primary ] ( https://avaje.io/inject/#primary ) | @ Primary |
115
+ | [ @Secondary ] ( https://avaje.io/inject/#secondary ) | @ Secondary |
116
+ | [ @ AssistFactory ] ( https://avaje.io/inject/#assistInject ) | - |
117
117
118
118
## Generated Code
119
119
0 commit comments