Implementing output adapters
We start implementing the output adapters to set up the integration between our topology and inventory system and the underlying data source technology that 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 ports' interfaces that get external data related to these entities. Also, we'll provide an output adapter implementation for each output port interface.
Router management output adapter
The router 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.davivieira.topologyinventory.domain.vo.Id; public...