Interface LifecycleHook

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method 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.
    • Method Detail

      • appliesTo

        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.
        Parameters:
        element - The Optional instance contains element for container classes or method but is empty for the engine
        Returns:
        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.
        Returns:
        propagation mode enum