cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1555936 - /cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java
Date Mon, 06 Jan 2014 17:33:26 GMT
Author: dkulp
Date: Mon Jan  6 17:33:26 2014
New Revision: 1555936

URL: http://svn.apache.org/r1555936
Log:
Remove method there just to support CXF 2.3.x style config

Modified:
    cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java

Modified: cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java?rev=1555936&r1=1555935&r2=1555936&view=diff
==============================================================================
--- cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java
(original)
+++ cxf/trunk/core/src/main/java/org/apache/cxf/bus/spring/BusWiringBeanFactoryPostProcessor.java
Mon Jan  6 17:33:26 2014
@@ -24,11 +24,8 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.cxf.Bus;
-import org.apache.cxf.configuration.Configurer;
-import org.apache.cxf.configuration.NullConfigurer;
 import org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser;
 import org.apache.cxf.configuration.spring.BusWiringType;
-import org.apache.cxf.configuration.spring.ConfigurerImpl;
 import org.apache.cxf.helpers.CastUtils;
 import org.springframework.beans.BeansException;
 import org.springframework.beans.factory.config.BeanDefinition;
@@ -161,28 +158,6 @@ public class BusWiringBeanFactoryPostPro
         constructorArgs.addIndexedArgumentValue(0, valueToInsert);
     }
     
-    
-    /**
-     * This is deprecated and is there to support 2.3.x compatibility.
-     * Code should be updated to call addDefaultBus(ctx) instead to get the bus
-     * associated with the context.
-     * @param bus
-     * @param ctx
-     */
-    @Deprecated
-    public static void updateBusReferencesInContext(Bus bus, ApplicationContext ctx) {
-        Configurer conf = bus.getExtension(Configurer.class);
-        if (conf instanceof NullConfigurer) {
-            bus.setExtension(new ConfigurerImpl(ctx), Configurer.class);
-        } else if (conf instanceof ConfigurerImpl) {
-            ((ConfigurerImpl)conf).addApplicationContext(ctx);
-        }
-        if (ctx instanceof ConfigurableApplicationContext) {
-            ConfigurableApplicationContext cctx = (ConfigurableApplicationContext)ctx;
-            new BusWiringBeanFactoryPostProcessor(bus).postProcessBeanFactory(cctx.getBeanFactory());
-        }
-    }
-
     public static Bus addDefaultBus(ApplicationContext ctx) {
         if (!ctx.containsBean(Bus.DEFAULT_BUS_ID)) {
             Bus b = getBusForName(Bus.DEFAULT_BUS_ID, ctx, true);



Mime
View raw message