openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1647598 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java
Date Tue, 23 Dec 2014 15:45:04 GMT
Author: rmannibucau
Date: Tue Dec 23 15:45:04 2014
New Revision: 1647598

URL: http://svn.apache.org/r1647598
Log:
if we have an interface and no classloader for it then use app classloader

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java?rev=1647598&r1=1647597&r2=1647598&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultApplicationBoundaryService.java
Tue Dec 23 15:45:04 2014
@@ -30,7 +30,6 @@ public class DefaultApplicationBoundaryS
 {
     private final ClassLoader appCL = BeanManager.class.getClassLoader();
 
-
     @Override
     public ClassLoader getApplicationClassLoader()
     {
@@ -40,7 +39,12 @@ public class DefaultApplicationBoundaryS
     @Override
     public ClassLoader getBoundaryClassLoader(Class classToProxy)
     {
-        return classToProxy.getClassLoader();
+        ClassLoader classLoader = classToProxy.getClassLoader();
+        if (classLoader == null && classToProxy.isInterface())
+        {
+            return getApplicationClassLoader();
+        }
+        return classLoader;
     }
 
 }



Mime
View raw message