Package net.jqwik.api.lifecycle
Interface RegistrarHook.Registrar
- Enclosing interface:
- RegistrarHook
public static interface RegistrarHook.Registrar
A short-lived object used for registering concrete hook implementation classes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
register
(Class<? extends LifecycleHook> hook) Register a concrete hook implementation with its default PropagationMode.void
register
(Class<? extends LifecycleHook> hook, PropagationMode propagationMode) Register a concrete hook implementation.
-
Method Details
-
register
Register a concrete hook implementation.- Parameters:
hook
- a concrete hook implementation classpropagationMode
- propagation enum
-
register
Register a concrete hook implementation with its default PropagationMode.- Parameters:
hook
- a concrete hook implementation class
-