@API(status=EXPERIMENTAL, since="1.0") @FunctionalInterface public interface SkipExecutionHook extends LifecycleHook
Modifier and Type | Interface and Description |
---|---|
static class |
SkipExecutionHook.SkipResult |
Modifier and Type | Field and Description |
---|---|
static SkipExecutionHook |
DO_NOT_SKIP |
Modifier and Type | Method and Description |
---|---|
SkipExecutionHook.SkipResult |
shouldBeSkipped(LifecycleContext context)
Determine if an annotated element should be skipped or not.
|
appliesTo, propagateTo
@API(status=INTERNAL) static final SkipExecutionHook DO_NOT_SKIP
SkipExecutionHook.SkipResult shouldBeSkipped(LifecycleContext context)
context
.
Use SkipExecutionHook.SkipResult.doNotSkip() or SkipExecutionHook.SkipResult.skip(String) as return value.context
- An instance of ContainerLifecycleContext or PropertyLifecycleContext