Annotation Type SecondaryPort
-
@Port @Retention(CLASS) @Target({PACKAGE,TYPE}) @Documented public @interface SecondaryPort
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. UsuallySecondaryPorts are implemented bySecondaryAdapters.- Since:
- 1.5
- See Also:
- Hexagonal Architecture,
SecondaryAdapter
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringdescriptionA description of theSecondaryPort.java.lang.StringnameAn identifier for the name of theSecondaryPortto identify and group multiple implementing classes of the sameSecondaryPort.
-
-
-
Element Detail
-
name
java.lang.String name
An identifier for the name of theSecondaryPortto identify and group multiple implementing classes of the sameSecondaryPort. If not set, external tooling may default this to the simple name of the annotated type or package.- Since:
- 1.8
- Default:
- ""
-
-
-
description
java.lang.String description
A description of theSecondaryPort. If not set, external tooling may default this to the JavaDoc.- Since:
- 1.8
- Default:
- ""
-
-