You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2015-05-27-guice.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,12 @@ date: 2015-05-27 15:27:38
6
6
order: 15
7
7
---
8
8
9
-
Pippo can be used together with the [Guice](https://github.com/google/guice), using Guice as a dependency injection container.
10
-
When Pippo creates new instances of your various `Controller` subclasses it delegates the instance creation to a `ControllerFactory`.
9
+
This page is valid in the context of [Controller](/mod/controller.htm)s.
10
+
Also, this page focuses on using `Guice` to inject dependencies in Pippo and not using Pippo as a dependency in an existing application.
11
+
If you want to add Pippo (web layer) as dependency in an already existing Guice application, please see [this](https://github.com/pippo-java/pippo/issues/369) text.
12
+
13
+
Pippo can be used together with the [Guice](https://github.com/google/guice), using Guice as a dependency injection container.
14
+
When Pippo creates new instances of your various `Controller` subclasses it delegates the instance creation to a `ControllerFactory`.
11
15
The module [pippo-guice]({{ site.codeurl }}/pippo-controller-parent/pippo-guice) contains [GuiceControllerFactory]({{ site.codeurl }}/pippo-controller-parent/pippo-guice/src/main/java/ro/pippo/guice/GuiceControllerFactory.java) that it's
12
16
a `ControllerFactory` implementation that delegates to the Guice container to instantiate a given `Controller` class. This allows for the instance to be configured via dependency injection.
0 commit comments