cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1040634 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java
Date Tue, 30 Nov 2010 16:45:26 GMT
Author: dkulp
Date: Tue Nov 30 16:45:26 2010
New Revision: 1040634

URL: http://svn.apache.org/viewvc?rev=1040634&view=rev
Log:
[CXF-3136] Make sure the ResourceManager is fully configured

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

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java?rev=1040634&r1=1040633&r2=1040634&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/Jsr250BeanPostProcessor.java
Tue Nov 30 16:45:26 2010
@@ -86,6 +86,10 @@ public class Jsr250BeanPostProcessor 
     }
     public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException
{
         if (!isProcessing) {
+            if (resourceManager == null && bean instanceof ResourceManager) {
+                resourceManager = (ResourceManager)bean;
+                resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
+            }
             return bean;
         }
         if (bean != null 



Mime
View raw message