Schnittstelle RegistrarHook.Registrar

Umschließende Schnittstelle:
RegistrarHook

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

    • register

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

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