Annotation Interface Service.ExternalContracts

Enclosing class:
Service

@Documented @Retention(CLASS) @Target(TYPE) public static @interface Service.ExternalContracts
Placed on the implementation of a service as an alternative to using a Service.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.
  • Element Details

    • value

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