Interface RegistrarHook.Registrar

  • Enclosing interface:
    RegistrarHook

    public static interface RegistrarHook.Registrar
    A short-lived object used for registering concrete hook implementation classes.
    • Method Detail

      • register

        void register​(java.lang.Class<? extends LifecycleHook> hook,
                      PropagationMode propagationMode)
        Register a concrete hook implementation.
        Parameters:
        hook - a concrete hook implementation class
        propagationMode - propagation enum
      • register

        default void register​(java.lang.Class<? extends LifecycleHook> hook)
        Register a concrete hook implementation with its default PropagationMode.
        Parameters:
        hook - a concrete hook implementation class