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
This commit is contained in:
Dave Syer
2016-06-02 10:23:14 +01:00
parent 72cf5256e8
commit 1002284360
14 changed files with 432 additions and 79 deletions

View File

@@ -51,6 +51,17 @@ public class SpringModuleWiringTests extends AbstractCompleteWiringTests {
public Baz baz() {
return new Baz(service());
}
@Bean
public Thang thing() {
return new Thang();
}
@Bean
public Thing that() {
return new Thing();
}
}
}