poem.simple.driven_adapter.ConsoleWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of poem-hexagon Show documentation
Show all versions of poem-hexagon Show documentation
A simple example for a hexagonal architecture.
package poem.simple.driven_adapter;
import java.util.Objects;
import poem.boundary.driven_port.IWriteLines;
/**
* Right-side, driven adapter for writing text to the console.
*
* @author b_muth
*
*/
public class ConsoleWriter implements IWriteLines {
public void writeLines(String[] lines) {
Objects.requireNonNull(lines);
for (String line : lines) {
System.out.println(line);
}
System.out.println("");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy