Commit Graph

138 Commits

Author SHA1 Message Date
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
Asi Bross
7567e57ee1 Respect @Lazy annotation in GuiceAutowireCandidateResolver 2020-01-10 13:14:37 -08:00
Dave Syer
6cdae2f6b8 Revert to snapshots 2019-12-11 19:27:27 +00:00
Dave Syer
7d8752cd0a Update for 1.1.4 2019-12-11 19:27:27 +00:00
Bernardo Gomez Palacio
3939f48dfb Guarding against NPE on element filtering
We are still observing some NPE in ModuleRegistryConfiguration.postProcessBeanDefinitionRegistry
The purpose of this commit is to guard against them and provide
additional context on the reason.
2019-12-11 10:45:30 -08:00
David Liu
c562a37dd3 update configuration options 2019-11-26 12:33:15 -08:00
Dave Syer
f759e6e4ab Add test for binding to Map by generic signature
See #67
2019-11-19 10:57:34 +00:00
Kevin Wang
4277d3e0f5 Fix handling FactoryBean 2019-11-18 13:50:17 -08:00
Bernardo Gomez Palacio
1a40634c10 Cover against a null source provided by a Guice Element
We are observing an edge case where a Guice Element returns a `null`
source, see the reference of he error below.

```
Caused by: java.lang.NullPointerException
	at org.springframework.guice.annotation.ModuleRegistryConfiguration.lambda$null$0(ModuleRegistryConfiguration.java:197)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
	at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
	at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
	at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)
	at org.springframework.guice.annotation.ModuleRegistryConfiguration.lambda$postProcessBeanDefinitionRegistry$1(ModuleRegistryConfiguration.java:197)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
	at org.springframework.guice.annotation.ModuleRegistryConfiguration.postProcessBeanDefinitionRegistry(ModuleRegistryConfiguration.java:198)
```
2019-11-18 13:14:42 -08:00
Dave Syer
61b3ac9c8d Fix more compiler warnings 2019-10-25 17:42:51 +01:00
Dave Syer
0a64a06bbc Fix compiler warnings 2019-10-25 17:40:31 +01:00
Kevin Wang
dc2a0b6495 Bind to super types 2019-10-23 13:01:07 -07:00
Kevin Wang
d62d78e500 Fix NPE 2019-10-21 09:45:59 -07:00
Kevin Wang
368ebc4d36 Add property to enable/disable Guice just-in-time bindings and log just-in-time bindings usage 2019-10-15 15:59:47 -07:00
Kevin Wang
1e7cbb0e31 Support generic interfaces 2019-10-15 15:45:40 -07:00
Kevin Wang
4308f7498b Bind all super interfaces 2019-10-15 15:45:40 -07:00
Taylor Wicksell
ee75c7a7a5 fix build by swapping to openjdk 2019-08-07 09:53:58 -07:00
Taylor Wicksell
741f6e3794 fixed issue where modules were only being filtered from AppContext and not the Injector 2019-08-07 09:53:58 -07:00
Dave Syer
e069f7c26f Pipeline YAML re-ordered for new concourse 2019-05-29 07:57:14 +01:00
Taylor Wicksell
c7424b1c5c remove unnecessary application.properties file 2019-05-18 05:15:00 -07:00
Taylor Wicksell
0ecc98d4cb ensure BindingAnnotations are treated as Qualifiers in Spring 2019-05-06 10:03:05 -07:00
Taylor Wicksell
6fec10d19c fixed issue where multibindings in guice cause duplicate beans in Spring 2019-05-06 10:02:53 -07:00
Spring Operator
3650197554 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 25 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-27 15:32:41 +00:00
Spring Operator
87178edc33 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://github.com/spring-projects/spring-guice with 1 occurrences migrated to:
  https://github.com/spring-projects/spring-guice ([https](https://github.com/spring-projects/spring-guice) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences
2019-03-20 13:54:10 +00:00