public static interface PerProperty.Lifecycle extends ResolveParameterHook
DO_NOT_RESOLVE
Modifier and Type | Method and Description |
---|---|
default void |
after(PropertyExecutionResult propertyExecutionResult) |
default void |
before(PropertyLifecycleContext context) |
default PropertyExecutionResult |
onFailure(PropertyExecutionResult propertyExecutionResult) |
default void |
onSuccess() |
default 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
default java.util.Optional<java.util.function.Supplier<java.lang.Object>> resolve(ParameterResolutionContext parameterContext, PropertyLifecycleContext propertyContext)
ResolveParameterHook
resolve
in interface ResolveParameterHook
default void before(PropertyLifecycleContext context)
default void after(PropertyExecutionResult propertyExecutionResult)
default void onSuccess()
default PropertyExecutionResult onFailure(PropertyExecutionResult propertyExecutionResult)