HHH-16881 - Fix conditional when CDI extensions are enabled

This commit is contained in:
mgarcia.devinuesa 2023-10-16 13:23:30 +02:00 committed by Christian Beikov
parent 3564717876
commit 9c65a2299c
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class DefaultRevisionInfoGenerator implements RevisionInfoGenerator {
Class<? extends RevisionListener> listenerClass,
ServiceRegistry serviceRegistry) {
if ( !listenerClass.equals( RevisionListener.class ) ) {
if ( Helper.allowExtensionsInCdi( serviceRegistry ) ) {
if ( !Helper.allowExtensionsInCdi( serviceRegistry ) ) {
return new ProvidedInstanceManagedBeanImpl<>(
FallbackBeanInstanceProducer.INSTANCE.produceBeanInstance( listenerClass )
);