Commit Graph

22 Commits

Author SHA1 Message Date
Dave Syer
a01511f269 Add Maven wrapper 2017-06-01 11:12:54 +01:00
Taylor Wicksell
b26bdb4125 Make SpringModule aware of bindings in wrapping Injector
See gh-13, gh-12
2017-06-01 11:12:32 +01:00
Taylor Wicksell
061aef36f2 support binding of generic interfaces from SpringModule 2017-06-01 08:32:23 +01:00
Dave Syer
9dae979d39 Add some tests 2017-05-26 14:22:25 +01:00
Dave Syer
5708ba0469 Add test for spring module including another guice module
This test is from a PR by @twicksell, but modified to run without
any changes in spring-guice. See gh-12 for discussion.
2017-05-24 17:40:03 +01:00
Dave Syer
771edd3711 Add support for @Named beans in SpringModule
A SpringModule now registers all beans by type and by name
separately, so clients can inject qualified instances.
2017-05-21 13:29:51 +01:00
Taylor Wicksell
8fd316ce23 add test case for InjectorFactory usage
added startup exception when multiple InjectorFactory definitions are provided
2017-05-21 08:44:21 +01:00
Dave Syer
1002284360 Add support for bean names
Users can in inject Spring beans by name in Guice using
@Named, or they can inject Guice beans in Spring as long
as they have @Named providers.

Fixes gh-7
2016-06-02 10:25:32 +01:00
Taylor Wicksell
71f1c363cc Modify to use BeanDefinitionRegistryPostProcessor
Also set guice binding source to "spring-guice" to avoid duplicate beans

Fixes gh-5
2016-02-04 11:35:05 +00:00
Dave Syer
2698b4e3e3 Add some sub-packages 2014-04-22 11:38:20 +01:00
Dave Syer
16172b9f6e Add bean name filters to GuiceModule 2014-04-17 11:32:14 -07:00
Dave Syer
81ac3999f9 Add SpringModule automatically to Injector 2014-04-17 08:04:27 -07:00
Dave Syer
97d5fa1d96 Add support for multiple GuiceModuleMetadatas 2014-04-17 04:29:04 -07:00
Dave Syer
431094e664 Add @GuiceModules with includes and excludes 2014-04-16 21:51:33 -07:00
Dave Syer
bc73409012 Support for @Primary beans 2014-04-16 20:57:40 -07:00
Dave Syer
327dd4d823 Fix tests and watch out for non-visible classes 2014-04-16 17:57:12 -07:00
Dave Syer
b8ff5d3516 Extract metadata for includes and excludes 2014-04-16 17:46:19 -07:00
Dave Syer
8ceebb9426 Ensure singleton with no interface works 2014-04-16 16:46:16 -07:00
Dave Syer
335a7120d0 Add limitations 2014-04-14 11:10:42 -07:00
Dave Syer
8460ea0425 Rename packages etc 2014-04-14 10:38:16 -07:00
Dave Syer
46c3d2bccd Add more bridges 2014-04-14 10:35:40 -07:00
Dave Syer
77e968bccd Initial experiments 2014-04-14 17:33:48 +01:00