Annotation Interface RegisterRestClient


@Documented @Retention(RUNTIME) @Target(TYPE) @Stereotype @Dependent public @interface RegisterRestClient
A marker annotation to register a rest client at runtime. This marker must be applied to any CDI managed clients. Note that the annotated interface indicates a service-centric view. Thus users would invoke methods on this interface as if it were running in the same VM as the remote service.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Sets the base URI for the rest client interface.
    Associates the annotated rest client interface with this configuration key.
  • Element Details

    • baseUri

      String baseUri
      Sets the base URI for the rest client interface. This value will be used for the URI unless it is overridden by MicroProfile Config.
      Since:
      1.2
      Default:
      ""
    • configKey

      String configKey
      Associates the annotated rest client interface with this configuration key. By specifying a non-empty value, this interface can be configured more simply using the configuration key rather than the fully-qualified class name of the interface.
      Since:
      1.3
      Default:
      ""