@API(status=MAINTAINED, since="1.4.0") public interface AroundContainerHook extends BeforeContainerHook, AfterContainerHook
DO_NOTHING
DO_NOTHING
Modifier and Type | Method and Description |
---|---|
default 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 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 |
proximity()
Determine both beforeContainerProximity() and afterContainerProximity()
in one go.
|
compareTo
compareTo
appliesTo, propagateTo
default void beforeContainer(ContainerLifecycleContext context)
BeforeContainerHook
beforeContainer
in interface BeforeContainerHook
context
- The container's context objectBeforeContainerHook.beforeContainer(ContainerLifecycleContext)
default int beforeContainerProximity()
BeforeContainerHook
Values greater than -10 will make it run after methods annotated with BeforeContainer, values smaller than -10 will make it run before.
beforeContainerProximity
in interface BeforeContainerHook
BeforeContainerHook.beforeContainerProximity()
default void afterContainer(ContainerLifecycleContext context)
AfterContainerHook
afterContainer
in interface AfterContainerHook
context
- The container's context objectAfterContainerHook.afterContainer(ContainerLifecycleContext)
default int afterContainerProximity()
AfterContainerHook
Values greater than -10 will make it run before methods annotated with AfterContainer, values smaller than -10 will make it run after.
afterContainerProximity
in interface AfterContainerHook
AfterContainerHook.afterContainerProximity()
default int proximity()