@API(status=EXPERIMENTAL,
since="1.2.4")
@FunctionalInterface
public interface ResolveParameterHook
extends LifecycleHook
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ResolveParameterHook.ParameterSupplier
A functional interface specialized on providing parameters to property methods
and to annotated lifecycle methods.
|
| Modifier and Type | Field and Description |
|---|---|
static ResolveParameterHook |
DO_NOT_RESOLVE |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ResolveParameterHook.ParameterSupplier> |
resolve(ParameterResolutionContext parameterContext,
LifecycleContext lifecycleContext)
This method will be called only once per property, whereas the returned supplier's get method
is usually invoked for each try - and potentially more often during shrinking or when resolving
parameters in before/after methods.
|
appliesTo, propagateTo@API(status=INTERNAL) static final ResolveParameterHook DO_NOT_RESOLVE
@API(status=EXPERIMENTAL,
since="1.2.5")
java.util.Optional<ResolveParameterHook.ParameterSupplier> resolve(ParameterResolutionContext parameterContext,
LifecycleContext lifecycleContext)
parameterContext - Contains information of parameter to resolvelifecycleContext - Can be of type ContainerLifecycleContext or PropertyLifecycleContext