Skip to content

Commit cea397f

Browse files
committed
Improve Guice section
1 parent 4a50a84 commit cea397f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

_posts/2015-05-27-guice.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ date: 2015-05-27 15:27:38
66
order: 15
77
---
88

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`.
1115
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
1216
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.
1317

0 commit comments

Comments
 (0)