@API(status=EXPERIMENTAL, since="1.2.4") @FunctionalInterface public interface ResolveParameterHook extends LifecycleHook
Modifier and Type | Field and Description |
---|---|
static ResolveParameterHook |
DO_NOT_RESOLVE |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.util.function.Supplier<java.lang.Object>> |
resolve(ParameterResolutionContext parameterContext,
PropertyLifecycleContext propertyContext)
This method will be called only once per property, whereas the returned
supplier is usually called for each try - and potentially more often during shrinking.
|
appliesTo, prepareFor, propagateTo
static final ResolveParameterHook DO_NOT_RESOLVE
java.util.Optional<java.util.function.Supplier<java.lang.Object>> resolve(ParameterResolutionContext parameterContext, PropertyLifecycleContext propertyContext)
parameterContext
- propertyContext
-