From a97dcd1ebc45cc00d853914eff203e387207ef9b Mon Sep 17 00:00:00 2001 From: Anshul Saraswat Kaul Date: Tue, 19 Jan 2021 15:16:36 +0530 Subject: [PATCH] Updating README document. Guice Module name provided explicitly --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7b77a52..4545b54 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Injector injector = Guice.createInjector(new SpringModule(context), new MyModule Service service = injector.getInstance(Service.class); ``` +`SpringModule` (`org.springframework.guice.module.SpringModule`) will wrap the existing spring configurations for you. + Note that the `ApplicationContext` in this example might contain the `Service` definition or it might be in the Guice `Module` (`MyModule`), or if `Service` is a concrete class it could be neither,