@API(status=EXPERIMENTAL,
since="1.0")
public interface LifecycleHook
Modifier and Type | Method and Description |
---|---|
default boolean |
appliesTo(java.util.Optional<java.lang.reflect.AnnotatedElement> element)
This method is called once per hook and potential element during lifecycle hooks registration.
|
default PropagationMode |
propagateTo()
Override this method if you want to change a concrete hook implementation's default
propagation behaviour: Do not use hook in child elements -- sub containers or properties.
|
@API(status=EXPERIMENTAL, since="1.2.4") default boolean appliesTo(java.util.Optional<java.lang.reflect.AnnotatedElement> element)
element
- The Optional instance contains element for container classes
or method but is empty for the engine@API(status=EXPERIMENTAL, since="1.2.4") default PropagationMode propagateTo()