Top Description Inners Fields Methods
org.eclipse.microprofile.rest.client.inject

public @Interface RestClient

extends Annotation
Known Direct Implementers
org.eclipse.microprofile.rest.client.inject.RestClient.RestClientLiteral
Annotations
@Target:FIELD, METHOD, PARAMETER, TYPE
@Qualifier
@Documented
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, jakarta.enterprise.util.AnnotationLiteral, jakarta.inject.Qualifier

Use the RestClient qualifier on an injection to point to indicate that this injection point is meant to use an instance of a Type-Safe Rest Client.
@Inject
@RestClient
private MyRemoteApi api;
This will cause the injection point to be satisfied by the MicroProfile Rest Client runtime.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final RestClient

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

LITERALback to summary
public static final RestClient LITERAL
org.eclipse.microprofile.rest.client.inject back to summary

public Class RestClient.RestClientLiteral

extends AnnotationLiteral<RestClient>
implements RestClient
Class Inheritance
All Implemented Interfaces
org.eclipse.microprofile.rest.client.inject.RestClient, java.lang.annotation.Annotation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Constructor Detail

RestClientLiteralback to summary
public RestClientLiteral()