| Annotation Type | Description |
|---|---|
| Adapter |
Adapters contain technology specific implementations to either drive (see PrimaryPort) or implement
Ports (see SecondaryPort). |
| Application |
An annotation to assign packages and types the role of core application code.
|
| Port |
A
Port defines an entry point into the Application that can either drive it (see PrimaryPort)
or be driven by the application (see SecondaryPort). |
| PrimaryAdapter |
A
PrimaryAdapter connects the outside of an application to an PrimaryPort exposed by the
application's core. |
| PrimaryPort |
In Hexagonal Architecture an
PrimaryPort describes an interface into an application's core that is exposed to
the outside to drive the application. |
| SecondaryAdapter |
SecondaryAdapters implement SecondaryPort to ultimately link the applications core to some extrenal
technology, like a database, message broker, email server or third-party service. |
| SecondaryPort |
An
SecondaryPort describes abstractions that describes interfaces to the outside that are driven by the
application's core, like a repository (to interact with a database) or a message publisher. |
Copyright © 2023. All rights reserved.