net.jqwik.api.lifecycle.AfterContainer Maven / Gradle / Ivy
package net.jqwik.api.lifecycle;
import java.lang.annotation.*;
import org.apiguardian.api.*;
import static org.apiguardian.api.API.Status.*;
/**
* Annotate static methods of a container class with {@code @AfterContainer}
* to have them run exactly once after all of its properties or any lifecycle
* methods from embedded containers have been run.
*
* {@code @AfterContainer} methods must be {@code static void}
* and they cannot have parameters.
*
*
{@code @AfterContainer} methods are inherited from superclasses
* and implemented interfaces as long as they are not hidden
* or overridden.
*
*
The execution order of multiple {@code @AfterContainer} methods
* within the same container is not guaranteed and might change.
*
* @see BeforeContainer
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@API(status = MAINTAINED, since = "1.4.0")
public @interface AfterContainer {
}