Package org.jmolecules.architecture.hexagonal
package org.jmolecules.architecture.hexagonal
-
Annotation InterfacesClassDescription
Adapters contain technology specific implementations to either drive (seePrimaryPort) or implementPorts (seeSecondaryPort).An annotation to assign packages and types the role of core application code.APortdefines an entry point into theApplicationthat can either drive it (seePrimaryPort) or be driven by the application (seeSecondaryPort).APrimaryAdapterconnects the outside of an application to anPrimaryPortexposed by the application's core.In Hexagonal Architecture anPrimaryPortdescribes an interface into an application's core that is exposed to the outside to drive the application.SecondaryAdapters implementSecondaryPortto ultimately link the applications core to some extrenal technology, like a database, message broker, email server or third-party service.AnSecondaryPortdescribes 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.