Merge remote-tracking branch 'origin/BAEL-2399' into BAEL-2399
This commit is contained in:
commit
e62fd6b4fb
|
@ -4,6 +4,8 @@ import com.baeldung.examples.common.AccountService;
|
|||
import com.baeldung.examples.common.AccountServiceImpl;
|
||||
import com.baeldung.examples.common.BookService;
|
||||
import com.baeldung.examples.common.BookServiceImpl;
|
||||
import com.baeldung.examples.common.PersonDao;
|
||||
import com.baeldung.examples.common.PersonDaoImpl;
|
||||
import com.baeldung.examples.guice.Foo;
|
||||
import com.baeldung.examples.guice.Person;
|
||||
import com.google.inject.AbstractModule;
|
||||
|
@ -15,6 +17,7 @@ public class GuiceModule extends AbstractModule {
|
|||
@Override
|
||||
protected void configure() {
|
||||
try {
|
||||
bind(PersonDao.class).to(PersonDaoImpl.class);
|
||||
bind(AccountService.class).to(AccountServiceImpl.class);
|
||||
bind(Foo.class).toProvider(new Provider<Foo>() {
|
||||
public Foo get() {
|
||||
|
|
Loading…
Reference in New Issue