openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1607159 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
Date Tue, 01 Jul 2014 18:25:20 GMT
Author: arne
Date: Tue Jul  1 18:25:20 2014
New Revision: 1607159

URL: http://svn.apache.org/r1607159
Log:
@TransientReferences don't have to be passivation-capable

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java?rev=1607159&r1=1607158&r2=1607159&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
Tue Jul  1 18:25:20 2014
@@ -26,6 +26,8 @@ import java.lang.reflect.Modifier;
 import java.util.Set;
 
 import javax.enterprise.inject.Disposes;
+import javax.enterprise.inject.TransientReference;
+import javax.enterprise.inject.spi.Annotated;
 import javax.enterprise.inject.spi.Bean;
 import javax.enterprise.inject.spi.Decorator;
 import javax.enterprise.inject.spi.InjectionPoint;
@@ -197,7 +199,8 @@ public class DeploymentValidationService
             {
                 if(!webBeansContext.getWebBeansUtil().isPassivationCapableDependency(injectionPoint))
                 {
-                    if(injectionPoint.getAnnotated().isAnnotationPresent(Disposes.class))
+                    Annotated annotated = injectionPoint.getAnnotated();
+                    if(annotated.isAnnotationPresent(Disposes.class) || annotated.isAnnotationPresent(TransientReference.class))
                     {
                         continue;
                     }



Mime
View raw message