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 d90d6e63f0
commit b386b25676
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 )
);