Package io.micronaut.http.client.bind
Interface HttpClientBinderRegistry
- All Known Implementing Classes:
DefaultHttpClientBinderRegistry
public interface HttpClientBinderRegistry
A registry of
ClientArgumentRequestBinder
instances.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionfindAnnotatedBinder
(@NonNull Class<?> annotationType) Locate anAnnotatedClientRequestBinder
for a given annotation type (that is supposed to be applied to the method).<T> Optional<ClientArgumentRequestBinder<?>>
findArgumentBinder
(@NonNull Argument<T> argument) Locate anClientArgumentRequestBinder
for the given argument.
-
Method Details
-
findArgumentBinder
<T> Optional<ClientArgumentRequestBinder<?>> findArgumentBinder(@NonNull @NonNull Argument<T> argument) Locate anClientArgumentRequestBinder
for the given argument.- Type Parameters:
T
- The argument type- Parameters:
argument
- The argument- Returns:
- An
Optional
ofClientArgumentRequestBinder
-
findAnnotatedBinder
Optional<AnnotatedClientRequestBinder<?>> findAnnotatedBinder(@NonNull @NonNull Class<?> annotationType) Locate anAnnotatedClientRequestBinder
for a given annotation type (that is supposed to be applied to the method).- Parameters:
annotationType
- - the type of annotation- Returns:
- An
Optional
ofAnnotatedClientRequestBinder
-