Annotation Interface BeforeContainer

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

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

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

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

See Also: