Top Description Methods
org.eclipse.microprofile.rest.client.annotation

public @Interface RegisterProvider

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Documented
@Repeatable:RegisterProviders
Imports
java.lang.annotation.Documented, .ElementType, .Repeatable, .Retention, .RetentionPolicy, .Target

When annotation is placed at the interface level of a REST API definition, the providers listed will be registered upon proxying.

If a provider listed is not found on the classpath, it is ignored. If a provider is listed, but is not a valid provider, then an IllegalArgumentException is thrown indicating that the provider is invalid.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the priority of the provider. If not specified, reads the priority from the annotation jakarta.annotation.Priority as defined on the class
priority
()

public Class<?>

Returns:

the provider class to register on this client interface
value
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

priorityback to summary
public int priority()
Returns:int

the priority of the provider. If not specified, reads the priority from the annotation jakarta.annotation.Priority as defined on the class

valueback to summary
public Class<?> value()
Returns:Class<?>

the provider class to register on this client interface