annotations property

List<Annotation> annotations
finalinherited

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., @Conditional inside @Configuration).

Implementation

final List<Annotation> annotations = [];