Skip to content

Commit

Permalink
Remove Enhancement.BeanDefiningAnnotations
Browse files Browse the repository at this point in the history
The marker annotation `@Enhancement.BeanDefiningAnnotations`
used to represent all bean defining annotations for the purpose
of restricting the set of types on which `@Enhancement` should
be performed. That, however, is pretty useless: `@Enhancement`
is only performed on types that were discovered during type
discovery, and all such types have a bean defining annotation.
(Either they have it directly, or `@Dependent` is implied
in case of classes added through `@Discovery` that don't have
a bean defining annotation.)
  • Loading branch information
Ladicek committed Dec 2, 2021
1 parent 448da1f commit c531b40
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,11 @@
* If empty, the set of <em>expected types</em> is not narrowed down in any way.
* If {@code java.lang.Annotation} is present, the set of <em>expected types</em>
* is narrowed down to types that use any annotation.
* The {@link BeanDefiningAnnotations @BeanDefiningAnnotations} marker type may
* be used to narrow down the set of <em>expected types</em> to types that use
* any bean defining annotation.
* <p>
* Defaults to an empty array, so that the set of <em>expected types</em> is not
* narrowed down in any way.
*
* @return types of annotations that must be present on the <em>expected types</em>
*/
Class<? extends Annotation>[] withAnnotations() default {};

/**
* Marker annotation type that, for the purpose of {@link Enhancement#withAnnotations()},
* represents set of bean defining annotations after the {@link Discovery @Discovery}
* phase is finished. That is, it includes custom normal scope annotations as well as
* custom stereotypes.
*/
@interface BeanDefiningAnnotations {
}
}

0 comments on commit c531b40

Please sign in to comment.