Summary
We started the Framework hexagon construction by first implementing the output adapters to enable the topology and inventory system to use an H2 in-memory database as its primary data source.
Then, we created three input adapters: one for router operations, another one for switch operations, and the last one for network-related operations. To conclude, we implemented tests to ensure that the adapters and the whole hexagonal system worked as expected. By completing the development of the Framework hexagon, we have finished the development of our overall hexagonal system.
We can improve the hexagonal system we have created by exploring the possibilities offered by the Java Module Platform System (JPMS). For example, we can leverage the hexagonal modular structure to apply the Dependency Inversion Principle (DIP). By doing so, we can make the hexagonal system more loosely coupled. We shall examine the DIP and other exciting features in the next chapter.
Questions
- ...