Annotation Interface AfterContainer


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @API(status=MAINTAINED, since="1.4.0") public @interface AfterContainer
Annotate static methods of a container class with @AfterContainer to have them run exactly once after all of its properties or any lifecycle methods from embedded containers have been run.

@AfterContainer methods must be static void and they cannot have parameters.

@AfterContainer methods are inherited from superclasses and implemented interfaces as long as they are not hidden or overridden.

The execution order of multiple @AfterContainer methods within the same container is not guaranteed and might change.

See Also: