Annotation Interface Adapter


@Retention(CLASS) @Target({PACKAGE,TYPE}) @Documented public @interface Adapter
Adapters contain technology specific implementations to either drive (see PrimaryPort) or implement Ports (see SecondaryPort). Adapters must not depend on Application code other than ports.
Since:
1.5
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A description of the Adapter.
    An identifier for the name of the Adapter to identify and group multiple implementing classes of the same Adapter.
  • Element Details

    • name

      String name
      An identifier for the name of the Adapter to identify and group multiple implementing classes of the same Adapter. If not set, external tooling may default this to the simple name of the annotated type or package.
      Since:
      1.8
      Default:
      ""
    • description

      String description
      A description of the Adapter. If not set, external tooling may default this to the JavaDoc.
      Since:
      1.8
      Default:
      ""