Commit Graph

10 Commits

Author SHA1 Message Date
Danny Thomas
b363700e28 Address duplicate binding issues
- Deduplicate LinkedKeyBinding by key before falling back to the target key
- Rather than just dropping the Guice keys during deduplication, retains the original Guice key if possible. Otherwise bindings may fail to resolve, as is the case with map bindings
- Avoid duplicating beans for untargetted bindings
- Avoid duplicating multibindings
2022-09-23 11:35:13 +01:00
Dave Syer
e71d6aca56 Use static factory methods and proxyBeanMethods = false
It is better to be explicit about beans of type `Module` and make
sure they don't interfere with Spring trying to enhance
`@Configuration` classes. The tests are now clear of the pesky
warning logs, and there is a new section in the README.
2022-03-21 08:41:05 +00:00
Simon DeMartini
2722841925 Convert JUnit assertions to AssertJ to match spring-javaformat checkstyle rules 2022-03-20 16:29:28 +00:00
Simon DeMartini
99d7a7a268 Upgrade to JUnit 5 2022-03-20 16:29:28 +00:00
Simon DeMartini
57c54fad2f Add and enforce spring checkstyle configurations 2022-03-20 10:40:10 +00:00
Simon DeMartini
7254dc8be7 Apply and enforce spring-javaformat 2022-03-19 21:15:20 +00:00
Asi Bross
7434f407b6 Delay injector creation until after registerBeanPostProcessors() phase is complete 2021-08-30 16:52:10 -07:00
Taylor Wicksell
6fec10d19c fixed issue where multibindings in guice cause duplicate beans in Spring 2019-05-06 10:02:53 -07:00
Taylor Wicksell
1680610faf create injector before embedded server initialization, after other BeanPostProcessors 2018-03-01 11:51:06 -06:00
Taylor Wicksell
a098f7854b Added an option to deduplicate bindings in favor of Spring
User can set Environment property spring.guice.dedup=true.
2018-03-01 09:53:31 +00:00