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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user