@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface JkPostInit
It runs after the KBean is created but before properties or command-line arguments are injected.
The method must not be static and accept one argument of type KBean.
To be detected, the method must be within a KBean class involved in the initialization phase.
When declared with `required=true`, jeka engine will initialize the postInit kbean prior this class declaring the annotated method.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
required
When declared with `true`, jeka engine will initialize
the configured kbean prior this class declaring the annotated method.
|