You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we add @Alternative and remove @AlternativePriority if present. However, if a user declares an @Alternative producer and enables it via quarkus.arc.selected-alternatives then @UnlessBuildProperty and friends would have no effect.
Introduce a new annotation, e.g. @VetoedProducer (note that @javax.enterprise.inject.Vetoed has @target({ ElementType.TYPE, ElementType.PACKAGE })).
A bit outside of this question but do you think it would be worth it to expand CDI spec to allow usage of @Vetoed on methods/fields? I think it might be worth it.
A bit outside of this question but do you think it would be worth it to expand CDI spec to allow usage of @Vetoed on methods/fields? I think it might be worth it.
I'm not sure TBH. The original intent of @Vetoed was probably to exclude classes from an explicit bean archive (bean discovery all), i.e. those that would otherwise end up as @Dependent beans. For sure you can use it for tests etc. but the majority of use cases was probably different. See also https://issues.redhat.com/browse/CDI-50.
Currently, we add
@Alternative
and remove@AlternativePriority
if present. However, if a user declares an@Alternative
producer and enables it viaquarkus.arc.selected-alternatives
then@UnlessBuildProperty
and friends would have no effect.We could:
@Produces
and all scopes and known qualifiers/stereotypes (due to Simplified Producer Method Declaration),AnnotationStore
),@VetoedProducer
(note that@javax.enterprise.inject.Vetoed
has@Target({ ElementType.TYPE, ElementType.PACKAGE })
).The text was updated successfully, but these errors were encountered: