Package io.micronaut.context.annotation
Annotation Interface Mixin
Annotation used to define a mixin in the compile-time processing context. A mixin allows
adding new annotations to an existing class.
This annotation is marked as experimental and is subject to change or removal in future versions.
- Since:
- 4.9
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]
Opposite ofincludeAnnotations()
.String[]
Filters which annotations are included.String[]
Remove the annotation from the target element.A way to specify the target class if it's not accessible.
-
Element Details
-
value
Class<?> value- Returns:
- The target of the mixin
-
-
-
target
String targetA way to specify the target class if it's not accessible. In that case the value should be Object.class.- Returns:
- The target of the mixin
- Default:
- ""
-
includeAnnotations
Filters which annotations are included. The predicate will useString.startsWith(String)
to verify if the annotation name should be included.- Returns:
- The full annotation name or a package to check if the annotation should be included.
- Default:
- {}
-
excludeAnnotations
Opposite ofincludeAnnotations()
. Filters which annotations to exclude.- Returns:
- The full annotation name or a package to check if the annotation should not be excluded.
- Default:
- {}
-
removeAnnotations
Remove the annotation from the target element. The predicate will useString.startsWith(String)
to verify if the annotation name should be removed.- Returns:
- The full annotation name or a package to check if the annotation should not be removed.
- Default:
- {}
-