Package io.micronaut.context.annotation
Annotation Type Executable
-
@Documented @Retention(RUNTIME) @Target({METHOD,TYPE,ANNOTATION_TYPE}) @Inherited public @interface ExecutableAnnotation applied to the method or type indicating that a
ExecutableMethodshould be produced for this method.When applied to a type all public methods will be considered executable and the necessary metadata produced
This annotation can be used as a meta annotation
- Since:
- 1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanprocessOnStartupWhether theExecutableMethodshould be processed at startup by the registeredExecutableMethodProcessorinstances.
-
-
-
Element Detail
-
processOnStartup
boolean processOnStartup
Whether theExecutableMethodshould be processed at startup by the registeredExecutableMethodProcessorinstances. The default is false to ensure fast startup, but for certain types of components processing at startup is required (for example scheduled tasks)- Returns:
- Whether to process the
ExecutableMethodat startup
- Default:
- false
-
-