Paweł Matejko 4446e74338 Hexagonal pattern fixes (#814)
* Fixed wrong else condition

* Simplified creating Set of numbers

* Deleted unused imports

* Replaced 'for' loop with 'foreach' one

* Replaced explicit type with diamond

* Removed unnecesary brackets from lambda

* Removed unnecesary contains check before adding element to Set

* Fixed typo and changed non-english constant names
2018-10-27 16:39:16 +05:30
..
2017-11-28 20:55:52 +02:00
2018-10-27 16:39:16 +05:30
2017-11-28 21:28:53 +02:00

layout, title, folder, permalink, pumlformat, categories, tags
layout title folder permalink pumlformat categories tags
pattern Hexagonal Architecture hexagonal /patterns/hexagonal/ svg Architectural
Java
Difficulty-Expert

Also known as

  • Ports and Adapters
  • Clean Architecture
  • Onion Architecture

Intent

Allow an application to equally be driven by users, programs, automated test or batch scripts, and to be developed and tested in isolation from its eventual run-time devices and databases.

Hexagonal Architecture class diagram

Applicability

Use Hexagonal Architecture pattern when

  • When the application needs to be independent of any frameworks
  • When it is important that the application highly maintainable and fully testable

Tutorials

Presentations

Real world examples

  • Apache Isis builds generic UI and REST API directly from the underlying domain objects

Credits