`WeldJunit5AutoExtension` cannot change synthetic archive discovery mode
manovotn opened this issue · 0 comments
manovotn commented
Currently there is no way to select bean discovery mode for WeldJunit5AutoExtension
which can lead to issues when users attempt to add whole packages where some beans have bean defining annotations and others don't.
This option would also be handy when migrating from older versions to Weld 5 (CDI 4, EE 10) since that's where the default changed from all
to annotated
.
We could add an annotation that's equivalent of org.jboss.weld.environment.se.Weld#setBeanDiscoveryMode(BeanDiscoveryMode)
.
Related Weld JIRA - https://issues.redhat.com/browse/WELD-2766