Annotation Interface PrimaryPort
@Port
@Retention(RUNTIME)
@Target({PACKAGE,TYPE})
@Documented
@Stereotype(priority=100,
inherited=false)
public @interface PrimaryPort
In Hexagonal Architecture an
PrimaryPort describes an interface into an application's core that is exposed to
the outside to drive the application. A PrimaryAdapter would refer to those ports in its implementation.- Since:
- 1.5
- Author:
- Oliver Drotbohm, Stephan Pirnbaum
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA description of thePrimaryPort.An identifier for the name of thePrimaryPortto identify and group multiple implementing classes of the samePrimaryPort.
-
Element Details
-
name
String nameAn identifier for the name of thePrimaryPortto identify and group multiple implementing classes of the samePrimaryPort. If not set, external tooling may default this to the simple name of the annotated type or package.- Since:
- 1.8
- Default:
- ""
-
description
String descriptionA description of thePrimaryPort. If not set, external tooling may default this to the JavaDoc.- Since:
- 1.8
- Default:
- ""
-