Package org.jmolecules.architecture.hexagonal
package org.jmolecules.architecture.hexagonal
-
Annotation TypesClassDescription
Adapter
s contain technology specific implementations to either drive (seePrimaryPort
) or implementPort
s (seeSecondaryPort
).An annotation to assign packages and types the role of core application code.APort
defines an entry point into theApplication
that can either drive it (seePrimaryPort
) or be driven by the application (seeSecondaryPort
).APrimaryAdapter
connects the outside of an application to anPrimaryPort
exposed by the application's core.In Hexagonal Architecture anPrimaryPort
describes an interface into an application's core that is exposed to the outside to drive the application.SecondaryAdapter
s implementSecondaryPort
to ultimately link the applications core to some extrenal technology, like a database, message broker, email server or third-party service.AnSecondaryPort
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.