File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
layers/src/main/java/com/iluwatar/layers Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 44
55/**
66 *
7- * <p>
87 * Layers is an architectural style where software responsibilities are
98 * divided among the different layers of the application.
10- * </p>
11- *
129 * <p>
1310 * This example demonstrates a traditional 3-layer architecture consisting of data access
1411 * layer, business layer and presentation layer.
15- * </p>
16- *
1712 * <p>
1813 * The data access layer is formed of Spring Data repositories <code>CakeDao</code>, <code>CakeToppingDao</code> and
1914 * <code>CakeLayerDao</code>. The repositories can be used for CRUD operations on cakes, cake toppings
2015 * and cake layers respectively.
21- * </p>
22- *
2316 * <p>
2417 * The business layer is built on top of the data access layer. <code>CakeBakingService</code> offers
2518 * methods to retrieve available cake toppings and cake layers and baked cakes. Also the
2619 * service is used to create new cakes out of cake toppings and cake layers.
27- * </p>
28- *
2920 * <p>
3021 * The presentation layer is built on the business layer and in this example it simply lists
3122 * the cakes that have been baked.
32- * </p>
33- *
3423 * <p>
3524 * We have applied so called strict layering which means that the layers can only access
3625 * the classes directly beneath them. This leads the solution to create an additional set of
4130 * layer DTOs (<code>CakeInfo</code>, <code>CakeToppingInfo</code>, <code>CakeLayerInfo</code>)
4231 * and returns them instead. This way the presentation layer does not have any knowledge of
4332 * other layers than the business layer and thus is not affected by changes to them.
44- * </p>
4533 *
4634 * @see Cake
4735 * @see CakeTopping
You can’t perform that action at this time.
0 commit comments