Package io.micronaut.context.bind
Interface ExecutableBeanContextBinder
- All Superinterfaces:
ExecutableBinder<BeanContext>
- All Known Implementing Classes:
DefaultExecutableBeanContextBinder
Sub-interface of
ExecutableBinder
that binds arguments from a BeanContext
.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription<T,
R> BoundExecutable<T, R> bind
(Executable<T, R> target, BeanContext source) Binds a givenExecutable
using the given registry and source object.Methods inherited from interface io.micronaut.core.bind.ExecutableBinder
bind, tryBind
-
Method Details
-
bind
<T,R> BoundExecutable<T,R> bind(Executable<T, R> target, BeanContext source) throws UnsatisfiedArgumentExceptionBinds a givenExecutable
using the given registry and source object.- Type Parameters:
T
- The executable target typeR
- The executable return type- Parameters:
target
- The target executablesource
- The bean context- Returns:
- The bound executable
- Throws:
UnsatisfiedArgumentException
- When the executable could not be satisfied
-