Annotation Type SecondaryPort
-
@Port @Retention(CLASS) @Target({PACKAGE,TYPE}) @Documented public @interface SecondaryPort
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. UsuallySecondaryPort
s are implemented bySecondaryAdapter
s.- Since:
- 1.5
- See Also:
- Hexagonal Architecture,
SecondaryAdapter
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
description
A description of theSecondaryPort
.java.lang.String
name
An identifier for the name of theSecondaryPort
to identify and group multiple implementing classes of the sameSecondaryPort
.
-
-
-
Element Detail
-
name
java.lang.String name
An identifier for the name of theSecondaryPort
to 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:
- ""
-
-