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