annotations property
The complete list of annotations discovered on the class and its meta-annotations.
This list is populated eagerly during construction and may include:
- Direct annotations (e.g.,
@Configuration,@Scope). - Meta-annotations applied on other annotations (e.g.,
@Conditionalinside@Configuration).
Implementation
final List<Annotation> annotations = [];