The two remaining files were still creating a Random everytime the method was called. These were missed in the previous commit because the previous commit had fixed only one of the methods; in other words, there were multiple methods that were creating the Random object on each call.
layout, title, folder, permalink, pumlformat, categories, tags
layout | title | folder | permalink | pumlformat | categories | tags | ||
---|---|---|---|---|---|---|---|---|
pattern | Hexagonal Architecture | hexagonal | /patterns/hexagonal/ | svg | Architectural |
|
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.
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