openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1798739 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events: ProcessInjectionPointImpl.java ProcessObserverMethodImpl.java
Date Wed, 14 Jun 2017 19:21:18 GMT
Author: struberg
Date: Wed Jun 14 19:21:18 2017
New Revision: 1798739

URL: http://svn.apache.org/viewvc?rev=1798739&view=rev
Log:
OWB-1186 always return the same Configurator instance for some events

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java?rev=1798739&r1=1798738&r2=1798739&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
Wed Jun 14 19:21:18 2017
@@ -83,7 +83,10 @@ public class ProcessInjectionPointImpl<T
     @Override
     public InjectionPointConfigurator configureInjectionPoint()
     {
-        this.injectionPointConfigurator = new InjectionPointConfiguratorImpl(injectionPoint);
+        if (injectionPointConfigurator == null)
+        {
+            this.injectionPointConfigurator = new InjectionPointConfiguratorImpl(injectionPoint);
+        }
         return injectionPointConfigurator;
     }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java?rev=1798739&r1=1798738&r2=1798739&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
Wed Jun 14 19:21:18 2017
@@ -77,7 +77,10 @@ public class ProcessObserverMethodImpl<T
     @Override
     public ObserverMethodConfigurator<T> configureObserverMethod()
     {
-        this.observerMethodConfigurator = new ObserverMethodConfiguratorImpl(webBeansContext,
extension, observerMethod);
+        if (observerMethodConfigurator == null)
+        {
+            this.observerMethodConfigurator = new ObserverMethodConfiguratorImpl(webBeansContext,
extension, observerMethod);
+        }
         return observerMethodConfigurator;
     }
 



Mime
View raw message