Dave Syer
cc030a7ccd
Change slack url
2023-01-16 13:26:10 +00:00
Dave Syer
696f60d102
Build with Spring 6.0.3
2023-01-16 11:37:08 +00:00
Dave Syer
e415436b35
Use different images
2023-01-16 11:34:09 +00:00
Dave Syer
966c1f8a76
Use older API
2023-01-16 11:31:12 +00:00
Dave Syer
f47746afbf
Update pipeline
2023-01-16 11:24:44 +00:00
Dave Syer
af09f5db7f
Add note to README about Spring 6
2023-01-16 11:02:54 +00:00
Dave Syer
0c5828a864
Check if it works with Spring 6
2023-01-16 11:00:03 +00:00
Dave Syer
f55cb56528
Fix pipeline
2023-01-16 09:24:27 +00:00
Dave Syer
04686d7d5b
Fix default branch name
2023-01-06 07:41:51 +00:00
Mehmet Mustafa Yilmaz
ce15b8e580
fix: Guice Cannot Inject Beans with Custom Annotations
...
SpringModule binds custom guice Providers for Spring managed beans so that Guice can inject beans from Spring Context.
Due to a bug in the Provider, Guice can only inject Spring beans that either don't have any qualifier annotations or only have Named annotation as a qualifier.
This fix enables Guice to inject beans with custom qualifier annotations as well.
Custom qualifier annotations do not need to be marker annotations (in other words, they can have attributes).
Other changes include:
Using factory method metadata of annotated bean definition rather than using custom code to retrieve factory method and its annotations
Added more test cases to validate various qualifier annotation scenarios.
2023-01-06 07:36:20 +00:00
Dave Syer
e133fee483
Add test for set binding autowire
...
Fixes #65
2022-10-06 10:08:57 +01:00
Dave Syer
c857318f73
Revert to snapshots
2022-09-23 12:45:04 +01:00
Dave Syer
48abeeab31
Update to 2.0.2
2022-09-23 12:44:26 +01:00
Dave Syer
393ca59830
Add license text
2022-09-23 11:49:19 +01:00
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
365c6b9e9e
Revert to snapshot
2022-06-13 17:33:04 +01:00
Stacey Watro
27030e7a84
Increase version to 2.0.1.
2022-06-13 17:27:59 +01:00
Dave Syer
7163df7a22
Attempt to fix pipeline
2022-06-13 17:27:09 +01:00
Stacey Watro
e39d980efb
Always use the Named key when looking up a Guice object in the GuiceAutowireCandidateResolver.
2022-05-25 18:37:08 +01:00
Stacey Watro
dc7dc52931
Remove use of Optional.
2022-05-17 10:22:05 +01:00
Stacey Watro
9d163233f7
Allow Named Guice components to be used in Spring when using partial injection.
2022-05-17 10:22:05 +01:00
Michaël REMOND
43277ab746
Support Guice throwing providers
...
Support Guice throwing providers by filtering the bindings using
the Guice com.google.inject.internal.UniqueAnnotations
Add test
2022-03-21 17:30:35 +00:00
Dave Syer
ee7284a830
Add GH action for checking PRs
2022-03-21 17:29:00 +00:00
Dave Syer
d96d2dcc2f
Revert to snapshot
2022-03-21 09:25:56 +00:00
Dave Syer
b4ed4df747
Update for release 2.0.0
2022-03-21 09:07:13 +00:00
Dave Syer
c3b97c039a
Adjust naming convention for releases
2022-03-21 09:06:24 +00:00
Dave Syer
fbd1d70ee6
Change INFO to DEBUG log level for lazy init proxy
...
It seems like too much information to log this for every lazy
init proxy.
2022-03-21 08:55:57 +00: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
Dave Syer
c22fb6a976
Drop BUILD prefix in snapshot label
2022-03-20 16:32:42 +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
b6c44a1436
Use explicit maven plugin versions to reduce some maven warnings
2022-03-20 10:41:01 +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
Simon DeMartini
ad60397400
Upgrade to latest mockito
2022-03-18 08:25:14 +00:00
Simon DeMartini
5a08924424
Upgrade to Spring 5.3.16
2022-03-18 08:17:54 +00:00
Dave Syer
1a2e8400d6
Bump project version and test with Spring 5.3
2022-03-18 08:15:08 +00:00
Simon DeMartini
cf87976601
Upgrade to Guice 5.1.0
2022-02-20 18:11:51 -08:00
Simon DeMartini
24614b1167
Upgrade to Guice 4.2.3
2022-02-20 18:11:38 -08:00
Stephane Maldini
af9e8b2ec8
Merge pull request #88 from asibross/patch/injector-creation-timing
...
Delay injector creation until after registerBeanPostProcessors() phase
2021-11-18 14:36:25 -08:00
dependabot[bot]
bfe908517d
Bump spring-framework-bom from 5.1.4.RELEASE to 5.1.18.RELEASE
...
Bumps [spring-framework-bom](https://github.com/spring-projects/spring-framework ) from 5.1.4.RELEASE to 5.1.18.RELEASE.
- [Release notes](https://github.com/spring-projects/spring-framework/releases )
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.1.4.RELEASE...v5.1.18.RELEASE )
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-05 17:05:56 +00:00
Dave Syer
4a16f7d287
Update pipeline image locations
2021-10-19 15:46:42 +01:00
Asi Bross
7434f407b6
Delay injector creation until after registerBeanPostProcessors() phase is complete
2021-08-30 16:52:10 -07:00
Howard Yuan
e54c544afa
Add more logic to the test
2021-04-20 07:06:05 +01:00
Howard Yuan
c6b5fd89f6
Add Unit Test for lazy init Guice providers
2021-04-20 07:06:05 +01:00
Howard Yuan
bf3b642b90
Set LazyInit if Injector stage is Development
2021-04-20 07:06:05 +01:00
Anshul Saraswat Kaul
a97dcd1ebc
Updating README document. Guice Module name provided explicitly
2021-02-09 09:47:49 +00:00
dependabot[bot]
e91d7c2c05
Bump junit from 4.12 to 4.13.1
...
Bumps [junit](https://github.com/junit-team/junit4 ) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases )
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md )
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-02-09 09:47:23 +00:00
Taylor Wicksell
ebfdb1be8e
#80 fix issue where SpringModule did not respect Spring prototype scope
2020-08-24 16:34:07 -07:00
Taylor Wicksell
e536f4ac9d
#78 prevent repeated NoSuchBeanDefinitionException's for JIT bindings
2020-08-17 14:45:08 -07:00