Implementing output adapters
We will start by implementing the output adapters to set up the integration between our topology and inventory system and the underlying data source technology, which is an H2
in-memory database. It’s also important to implement output adapters first because we refer to them when implementing the input adapters.
The topology and inventory system allows external data retrieval for routers’ and switches’ entities. So, in this section, we will review the output port interfaces that get external data related to these entities. We’ll also provide an output adapter implementation for each output port interface.
The router management output adapter
The router management output adapter we need to create should implement this RouterManagementOutputPort
interface:
package dev.davivieira.topologyinventory.application. ports.output; import dev.davivieira.topologyinventory.domain.entity.Router; import dev...