@API(status=EXPERIMENTAL, since="1.2.4") @FunctionalInterface public interface BeforeContainerHook extends LifecycleHook
Modifier and Type | Field and Description |
---|---|
static BeforeContainerHook |
DO_NOTHING |
Modifier and Type | Method and Description |
---|---|
void |
beforeContainer(ContainerLifecycleContext context)
The code of this method will be run exactly once before any property method or child container.
|
default int |
beforeContainerProximity()
The higher the value, the closer to the actual property methods, i.e. the later it will be run.
|
default int |
compareTo(BeforeContainerHook other) |
appliesTo, propagateTo
@API(status=INTERNAL) static final BeforeContainerHook DO_NOTHING
void beforeContainer(ContainerLifecycleContext context) throws java.lang.Throwable
context
- The container's context objectjava.lang.Throwable
default int beforeContainerProximity()
Values greater than -10 will make it run after methods annotated with BeforeContainer, values smaller than -10 will make it run before.
@API(status=INTERNAL) default int compareTo(BeforeContainerHook other)