Annotation Type PrimaryAdapter


  • @Adapter
    @Retention(CLASS)
    @Target({PACKAGE,TYPE})
    @Documented
    public @interface PrimaryAdapter
    A PrimaryAdapter connects the outside of an application to an PrimaryPort 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 the PrimaryAdapter.
      java.lang.String name
      An identifier for the name of the PrimaryAdapter to identify and group multiple implementing classes of the same PrimaryAdapter.
    • Element Detail

      • name

        java.lang.String name
        An identifier for the name of the PrimaryAdapter to identify and group multiple implementing classes of the same PrimaryAdapter. 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 the PrimaryAdapter. If not set, external tooling may default this to the JavaDoc.
        Since:
        1.8
        Default:
        ""