Schnittstelle LifecycleHook

Alle bekannten Unterschnittstellen:
AfterContainerHook, AroundContainerHook, AroundPropertyHook, AroundTryHook, BeforeContainerHook, InvokePropertyMethodHook, ProvidePropertyInstanceHook, RegistrarHook, ResolveParameterHook, SkipExecutionHook
Alle bekannten Implementierungsklassen:
PerProperty.PerPropertyHook, PropertyDefaults.PropertyDefaultsHook

@API(status=MAINTAINED, since="1.4.0") public interface LifecycleHook
This is the supertype of all lifecycle hook interfaces. You can register a concrete implementation of a hook interface using AddLifecycleHook.
Siehe auch:
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    default boolean
    This method is called once per hook and potential element during lifecycle hooks registration.
    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.
  • Methodendetails

    • appliesTo

      default boolean appliesTo(Optional<AnnotatedElement> element)
      This method is called once per hook and potential element during lifecycle hooks registration.
      Parameter:
      element - The Optional instance contains element for container classes or method but is empty for the engine
      Gibt zurück:
      true if a hook shall be applied to this element
    • propagateTo

      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.
      Gibt zurück:
      propagation mode enum