@Documented @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,METHOD}) @HasHandlerAttributes public @interface StartHandler
CompletableFuture
on the annotated
method.
The phase()
defines the moment the member method should be invoked. The lower the provided phase
,
the earlier this method will be executed during start up.
This annotation is only allowed on methods and as a meta-annotation.
Modifier and Type | Required Element and Description |
---|---|
int |
phase
An
int defining the moment in the start cycle the member method should be invoked. |
public abstract int phase
int
defining the moment in the start cycle the member method should be invoked. The lower the provided
phase
, the earlier this method will be executed during start up. The Phase
constants can be used
to this end.int
defining the moment in the start cycle the member method should be invokedCopyright © 2010–2023. All rights reserved.