Update App.java
This commit is contained in:
parent
2b229d8ea1
commit
09aa44ddcb
@ -26,7 +26,6 @@ import com.google.inject.Guice;
|
|||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Dependency Injection pattern deals with how objects handle their dependencies. The pattern
|
* Dependency Injection pattern deals with how objects handle their dependencies. The pattern
|
||||||
* implements so called inversion of control principle. Inversion of control has two specific rules:
|
* implements so called inversion of control principle. Inversion of control has two specific rules:
|
||||||
* - High-level modules should not depend on low-level modules. Both should depend on abstractions.
|
* - High-level modules should not depend on low-level modules. Both should depend on abstractions.
|
||||||
@ -45,7 +44,6 @@ import com.google.inject.Injector;
|
|||||||
* The fourth example takes the pattern a step further. It uses Guice framework for Dependency
|
* The fourth example takes the pattern a step further. It uses Guice framework for Dependency
|
||||||
* Injection. {@link TobaccoModule} binds a concrete implementation to abstraction. Injector is then
|
* Injection. {@link TobaccoModule} binds a concrete implementation to abstraction. Injector is then
|
||||||
* used to create {@link GuiceWizard} object with correct dependencies.
|
* used to create {@link GuiceWizard} object with correct dependencies.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user