Reader small image

You're reading from  Designing Hexagonal Architecture with Java

Product typeBook
Published inJan 2022
PublisherPackt
ISBN-139781801816489
Edition1st Edition
Right arrow
Author (1)
Davi Vieira
Davi Vieira
author image
Davi Vieira

Davi Vieira is a software craftsman with a vested interest in the challenges faced by large enterprises in software design, development, and architecture. He has more than 10 years of experience constructing and maintaining complex, long-lasting, and mission-critical systems using object-oriented languages. He values the good lessons and the software development tradition left by others who came before him. Inspired by this software tradition, he develops and evolves his ideas.
Read more about Davi Vieira

Right arrow

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...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Designing Hexagonal Architecture with Java
Published in: Jan 2022Publisher: PacktISBN-13: 9781801816489

Author (1)

author image
Davi Vieira

Davi Vieira is a software craftsman with a vested interest in the challenges faced by large enterprises in software design, development, and architecture. He has more than 10 years of experience constructing and maintaining complex, long-lasting, and mission-critical systems using object-oriented languages. He values the good lessons and the software development tradition left by others who came before him. Inspired by this software tradition, he develops and evolves his ideas.
Read more about Davi Vieira