Modify to use BeanDefinitionRegistryPostProcessor
Also set guice binding source to "spring-guice" to avoid duplicate beans Fixes gh-5
This commit is contained in:
committed by
Dave Syer
parent
2698b4e3e3
commit
71f1c363cc
@@ -37,7 +37,7 @@ public class SimpleWiringTests {
|
||||
assertNotNull(app.getInstance(Foo.class));
|
||||
}
|
||||
|
||||
protected static class TestConfig extends AbstractModule {
|
||||
public static class TestConfig extends AbstractModule {
|
||||
@Override
|
||||
protected void configure() {
|
||||
bind(Service.class).to(MyService.class);
|
||||
@@ -47,10 +47,10 @@ public class SimpleWiringTests {
|
||||
interface Service {
|
||||
}
|
||||
|
||||
protected static class MyService implements Service {
|
||||
public static class MyService implements Service {
|
||||
}
|
||||
|
||||
protected static class Foo {
|
||||
public static class Foo {
|
||||
|
||||
@Inject
|
||||
public Foo(Service service) {
|
||||
|
||||
Reference in New Issue
Block a user