@API(status=EXPERIMENTAL,
since="1.0")
@FunctionalInterface
public interface AroundPropertyHook
extends LifecycleHook
| Modifier and Type | Field and Description |
|---|---|
static AroundPropertyHook |
BASE |
| Modifier and Type | Method and Description |
|---|---|
PropertyExecutionResult |
aroundProperty(PropertyLifecycleContext context,
PropertyExecutor property)
When you wrap a property you can do stuff before and/or after its execution.
|
default int |
aroundPropertyProximity()
The higher the value, the closer to the actual property method.
|
default int |
compareTo(AroundPropertyHook other) |
appliesTo, propagateTo@API(status=INTERNAL) static final AroundPropertyHook BASE
PropertyExecutionResult aroundProperty(PropertyLifecycleContext context, PropertyExecutor property) throws java.lang.Throwable
property.execute()
and either return the result of this call or map it to another result.context - The property's context objectproperty - An executor to run the propertyjava.lang.Throwabledefault int aroundPropertyProximity()
Values greater than -10 will make it run "inside" annotated lifecycle methods (BeforeProperty and AfterProperty).
@API(status=INTERNAL) default int compareTo(AroundPropertyHook other)