Package io.micronaut.context.annotation
Annotation Interface Executable
@Documented
@Retention(RUNTIME)
@Target({METHOD,TYPE,ANNOTATION_TYPE})
@Inherited
public @interface Executable
Annotation applied to the method or type indicating that a ExecutableMethod
should 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
- Author:
- Graeme Rocher
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Whether theExecutableMethod
should be processed at startup by the registeredExecutableMethodProcessor
instances.
-
Element Details
-
processOnStartup
boolean processOnStartupWhether theExecutableMethod
should be processed at startup by the registeredExecutableMethodProcessor
instances. 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
ExecutableMethod
at startup
- Default:
- false
-