Section 2: Using Hexagons to Create a Solid Foundation
By following a real-world example of software that manages a telco's network and topology inventory, in this section, you will learn how to implement the building blocks for this hexagonal application.
This is a hands-on section where we'll have the opportunity to get our hands dirty while applying the hexagonal architecture principles. We start by implementing the Domain hexagon, which contains the domain model of the topology and inventory system. Then, we implement the Application hexagon by using use cases and ports to express system behaviors. To enable and expose features provided by the hexagonal application, we use adapters to implement the Framework hexagon. Closing this section, we learn how to use Java modules to apply dependency inversion in our hexagonal application.
This section comprises the following chapters:
- Chapter 6, Building the Domain Hexagon
- Chapter 7, Building the Application...