cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1100182 - /cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java
Date Fri, 06 May 2011 12:02:36 GMT
Author: ningjiang
Date: Fri May  6 12:02:36 2011
New Revision: 1100182

URL: http://svn.apache.org/viewvc?rev=1100182&view=rev
Log:
CXF-3497 Set the ClassLoader Extension when the bus is loaded from Spring

Modified:
    cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java

Modified: cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java?rev=1100182&r1=1100181&r2=1100182&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java
(original)
+++ cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/spring/BusExtensionPostProcessor.java
Fri May  6 12:02:36 2011
@@ -54,9 +54,11 @@ public class BusExtensionPostProcessor i
         if (bean instanceof BusExtension && null != getBus()) {
             Class cls = ((BusExtension)bean).getRegistrationType();
             getBus().setExtension(bean, cls);
+            getBus().setExtension(context.getClassLoader(), ClassLoader.class);
         } else if (bean instanceof Bus && Bus.DEFAULT_BUS_ID.equals(beanId)) {
             bus = (Bus)bean;
             bus.setExtension(context, ApplicationContext.class);
+            bus.setExtension(context.getClassLoader(), ClassLoader.class);
             bus.setExtension(new SpringBeanLocator(context), ConfiguredBeanLocator.class);
         }
         return bean;



Mime
View raw message