Sample-spring-basic » History » Version 2
Henning Blohm, 11.09.2012 13:20
1 | 1 | Henning Blohm | h1. A Basic Spring with Z2 Modularity Sample |
---|---|---|---|
2 | 2 | Henning Blohm | |
3 | The sample contained in the repository "z2-samples.spring-basic":http://redmine.z2-environment.net/projects/z2-samples/repository/z2-samples-spring-basic is a clean room example on how to use the Spring integration features described in [[how_to_spring]]. |
||
4 | |||
5 | There is no further pre-requisite to running this sample, and you may proceed as described in [[how_to_run_a_sample]]. |
||
6 | |||
7 | There are two modules contained in this sample: |
||
8 | |||
9 | h2. com.zfabrik.samples.spring-basic.services |
||
10 | |||
11 | This module has a classpath defined application context and exposes a bean from it as a service to be consumed from another module: The *computations* bean. |
||
12 | |||
13 | h2. com.zfabrik.samples.spring-basic.frontend |
||
14 | |||
15 | This module has a Web application with an application context defined in WEB-INF/applicationContext. It uses Spring AspectJ based annotation driven configuration to inject dependencies into instances of "ControllerServlet":http://redmine.z2-environment.net/projects/z2-samples/repository/z2-samples-spring-basic/revisions/master/entry/com.zfabrik.samples.spring-basic.frontend/java/src.impl/samples/frontend/impl/ControllerServlet.java. |