Summary
We started the Framework hexagon construction by implementing first the output adapters to enable the topology and inventory system to use as its primary data source an H2 in-memory database.
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 work as expected. By completing the development of the Framework hexagon, we 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 Platform Module 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
- Which...