Annotation Type PrimaryAdapter
-
@Adapter @Retention(CLASS) @Target({PACKAGE,TYPE}) @Documented public @interface PrimaryAdapter
APrimaryAdapter
connects the outside of an application to anPrimaryPort
exposed by the application's core. For example, it could be a component accepting HTTP requests or a listener for a message broker.- Since:
- 1.5
- See Also:
- Hexagonal Architecture,
PrimaryPort
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
description
A description of thePrimaryAdapter
.java.lang.String
name
An identifier for the name of thePrimaryAdapter
to identify and group multiple implementing classes of the samePrimaryAdapter
.
-
-
-
Element Detail
-
name
java.lang.String name
An identifier for the name of thePrimaryAdapter
to identify and group multiple implementing classes of the samePrimaryAdapter
. 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 thePrimaryAdapter
. If not set, external tooling may default this to the JavaDoc.- Since:
- 1.8
- Default:
- ""
-
-