Annotation Interface ExternalContracts


@Documented @Retention(CLASS) @Target(TYPE) public @interface ExternalContracts
Placed on the implementation of a service as an alternative to using a Contract.

Use this annotation when it is impossible to place an annotation on the interface itself - for instance of the interface comes from a 3rd party library provider.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    The advertised contract type(s) for the service class implementation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The optional set of module names where this contract is expected to reside.
  • Element Details

    • value

      Class<?>[] value
      The advertised contract type(s) for the service class implementation.
      Returns:
      the external contract(s)
    • moduleNames

      String[] moduleNames
      The optional set of module names where this contract is expected to reside.
      Returns:
      the optional module names
      Default:
      {}