Annotation Type AddLifecycleHook


  • @Target({ANNOTATION_TYPE,METHOD,TYPE})
    @Retention(RUNTIME)
    @Repeatable(LifecycleHooks.class)
    @Inherited
    @API(status=MAINTAINED,
         since="1.4.0")
    public @interface AddLifecycleHook
    Use to register a concrete lifecycle hook implementation for a test element -- a container class or a property method. More than one hook can be registered.

    This annotation can be used as meta annotation for self-made ones.

    • Element Detail

      • value

        java.lang.Class<? extends LifecycleHook> value
        Returns:
        Concrete lifecycle hook implementation class