Package io.micronaut.http.client.bind
Interface HttpClientBinderRegistry
-
- All Known Implementing Classes:
DefaultHttpClientBinderRegistry
public interface HttpClientBinderRegistryA registry ofClientArgumentRequestBinderinstances.- Since:
- 2.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<AnnotatedClientRequestBinder<?>>findAnnotatedBinder(java.lang.Class<?> annotationType)Locate anAnnotatedClientRequestBinderfor a given annotation type (that is supposed to be applied to the method).<T> java.util.Optional<ClientArgumentRequestBinder<?>>findArgumentBinder(io.micronaut.core.type.Argument<T> argument)Locate anClientArgumentRequestBinderfor the given argument.
-
-
-
Method Detail
-
findArgumentBinder
<T> java.util.Optional<ClientArgumentRequestBinder<?>> findArgumentBinder(@NonNull io.micronaut.core.type.Argument<T> argument)
Locate anClientArgumentRequestBinderfor the given argument.- Type Parameters:
T- The argument type- Parameters:
argument- The argument- Returns:
- An
OptionalofClientArgumentRequestBinder
-
findAnnotatedBinder
java.util.Optional<AnnotatedClientRequestBinder<?>> findAnnotatedBinder(@NonNull java.lang.Class<?> annotationType)
Locate anAnnotatedClientRequestBinderfor a given annotation type (that is supposed to be applied to the method).- Parameters:
annotationType- - the type of annotation- Returns:
- An
OptionalofAnnotatedClientRequestBinder
-
-