|
13 | 13 | @Slf4j |
14 | 14 | public class App { |
15 | 15 |
|
16 | | - private static final String SERVICE = "SERVICE"; |
| 16 | + private static final String SERVICE = "SERVICE"; |
17 | 17 |
|
18 | | - /** |
19 | | - * Program entry point. |
20 | | - * @param args command line args |
21 | | - */ |
22 | | - public static void main(String[] args) { |
23 | | - //Initiate first layer and add service information into context |
24 | | - var layerA = new LayerA(); |
25 | | - layerA.addAccountInfo(SERVICE); |
| 18 | + /** |
| 19 | + * Program entry point. |
| 20 | + * |
| 21 | + * @param args command line args |
| 22 | + */ |
| 23 | + public static void main(String[] args) { |
| 24 | + //Initiate first layer and add service information into context |
| 25 | + var layerA = new LayerA(); |
| 26 | + layerA.addAccountInfo(SERVICE); |
26 | 27 |
|
27 | | - LOGGER.info("Context = {}",layerA.getContext()); |
| 28 | + LOGGER.info("Context = {}", layerA.getContext()); |
28 | 29 |
|
29 | | - //Initiate second layer and preserving information retrieved in first layer through passing context object |
30 | | - var layerB = new LayerB(layerA); |
31 | | - layerB.addSessionInfo(SERVICE); |
| 30 | + //Initiate second layer and preserving information retrieved in first layer through passing context object |
| 31 | + var layerB = new LayerB(layerA); |
| 32 | + layerB.addSessionInfo(SERVICE); |
32 | 33 |
|
33 | | - LOGGER.info("Context = {}",layerB.getContext()); |
| 34 | + LOGGER.info("Context = {}", layerB.getContext()); |
34 | 35 |
|
35 | | - //Initiate third layer and preserving information retrieved in first and second layer through passing context object |
36 | | - var layerC = new LayerC(layerB); |
37 | | - layerC.addSearchInfo(SERVICE); |
| 36 | + //Initiate third layer and preserving information retrieved in first and second layer through passing context object |
| 37 | + var layerC = new LayerC(layerB); |
| 38 | + layerC.addSearchInfo(SERVICE); |
38 | 39 |
|
39 | | - LOGGER.info("Context = {}",layerC.getContext()); |
40 | | - } |
| 40 | + LOGGER.info("Context = {}", layerC.getContext()); |
| 41 | + } |
41 | 42 | } |
0 commit comments