public static class PerProperty.PerPropertyHook extends java.lang.Object implements AroundPropertyHook, ResolveParameterHook
ResolveParameterHook.ParameterSupplierBASEDO_NOT_RESOLVE| Constructor and Description |
|---|
PerPropertyHook() |
| Modifier and Type | Method and Description |
|---|---|
PropertyExecutionResult |
aroundProperty(PropertyLifecycleContext context,
PropertyExecutor property) |
int |
aroundPropertyProximity() |
void |
prepareFor(LifecycleContext context)
This method is called when an element, container class or property method,
is found with this hook directly attached or applied to through a parent element.
|
java.util.Optional<ResolveParameterHook.ParameterSupplier> |
resolve(ParameterResolutionContext parameterContext)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareToappliesTo, propagateTopublic void prepareFor(LifecycleContext context)
LifecycleHookprepareFor in interface LifecycleHookcontext - The context can be a ContainerLifecycleContext
or a PropertyLifecycleContextpublic PropertyExecutionResult aroundProperty(PropertyLifecycleContext context, PropertyExecutor property) throws java.lang.Throwable
aroundProperty in interface AroundPropertyHookjava.lang.Throwablepublic int aroundPropertyProximity()
aroundPropertyProximity in interface AroundPropertyHookpublic java.util.Optional<ResolveParameterHook.ParameterSupplier> resolve(ParameterResolutionContext parameterContext)
ResolveParameterHookresolve in interface ResolveParameterHook