Commit 8d74f24
committed
Register beans using BeanFactory directly
Simplify setBeanFactory by calling registerBeanDefinition/registerBean with the BeanFactory instead of converting it to a BeanDefinitionRegistry. Removed the now-unused asBeanDefinitionRegistry import and eliminated the intermediate registry variable to reduce casting and dependency on BeanFactoryUtils.1 parent 8d5c016 commit 8d74f24
1 file changed
Lines changed: 2 additions & 4 deletions
File tree
- microsphere-spring-context/src/main/java/io/microsphere/spring/config
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 223 | + | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
0 commit comments