HHH-16881 - Fix conditional when CDI extensions are enabled
This commit is contained in:
parent
3564717876
commit
9c65a2299c
|
@ -110,7 +110,7 @@ public class DefaultRevisionInfoGenerator implements RevisionInfoGenerator {
|
||||||
Class<? extends RevisionListener> listenerClass,
|
Class<? extends RevisionListener> listenerClass,
|
||||||
ServiceRegistry serviceRegistry) {
|
ServiceRegistry serviceRegistry) {
|
||||||
if ( !listenerClass.equals( RevisionListener.class ) ) {
|
if ( !listenerClass.equals( RevisionListener.class ) ) {
|
||||||
if ( Helper.allowExtensionsInCdi( serviceRegistry ) ) {
|
if ( !Helper.allowExtensionsInCdi( serviceRegistry ) ) {
|
||||||
return new ProvidedInstanceManagedBeanImpl<>(
|
return new ProvidedInstanceManagedBeanImpl<>(
|
||||||
FallbackBeanInstanceProducer.INSTANCE.produceBeanInstance( listenerClass )
|
FallbackBeanInstanceProducer.INSTANCE.produceBeanInstance( listenerClass )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue