Package io.micronaut.core.bind
Interface ArgumentBinderRegistry<S>
-
- Type Parameters:
S
- type Generic
public interface ArgumentBinderRegistry<S>
A registry ofArgumentBinder
instances.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T,ST>
voidaddRequestArgumentBinder(ArgumentBinder<T,ST> binder)
Adds a request argument binder to the registry.<T> java.util.Optional<ArgumentBinder<T,S>>
findArgumentBinder(Argument<T> argument, S source)
Locate anArgumentBinder
for the given argument and source type.
-
-
-
Method Detail
-
addRequestArgumentBinder
default <T,ST> void addRequestArgumentBinder(ArgumentBinder<T,ST> binder)
Adds a request argument binder to the registry.- Type Parameters:
T
- The argument typeST
- The source type- Parameters:
binder
- The binder- Since:
- 2.0
-
findArgumentBinder
<T> java.util.Optional<ArgumentBinder<T,S>> findArgumentBinder(Argument<T> argument, S source)
Locate anArgumentBinder
for the given argument and source type.- Type Parameters:
T
- The argument type- Parameters:
argument
- The argumentsource
- The source- Returns:
- An
Optional
ofArgumentBinder
-
-