CXF-6192 Fixed the issue of CXF blueprint clustering

Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f4698f2f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f4698f2f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f4698f2f

Branch: refs/heads/2.7.x-fixes
Commit: f4698f2fca6d497e9085940bcfe35f4e4a5a5da8
Parents: 5b9c0aa
Author: Willem Jiang <willem.ji...@gmail.com>
Authored: Tue Jan 13 13:50:20 2015 +0800
Committer: Willem Jiang <willem.ji...@gmail.com>
Committed: Tue Jan 13 13:51:53 2015 +0800

----------------------------------------------------------------------
 .../blueprint/ClusteringBPNamespaceHandler.java           | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f4698f2f/rt/features/clustering/src/main/java/org/apache/cxf/clustering/blueprint/ClusteringBPNamespaceHandler.java
----------------------------------------------------------------------
diff --git 
a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/blueprint/ClusteringBPNamespaceHandler.java
 
b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/blueprint/ClusteringBPNamespaceHandler.java
index 8e67e51..a98aa9e 100644
--- 
a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/blueprint/ClusteringBPNamespaceHandler.java
+++ 
b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/blueprint/ClusteringBPNamespaceHandler.java
@@ -27,7 +27,7 @@ import org.w3c.dom.Node;
 import org.apache.aries.blueprint.NamespaceHandler;
 import org.apache.aries.blueprint.ParserContext;
 import org.apache.cxf.clustering.FailoverFeature;
-import org.apache.cxf.clustering.LoadDistributorTargetSelector;
+import org.apache.cxf.clustering.LoadDistributorFeature;
 import org.apache.cxf.configuration.blueprint.SimpleBPBeanDefinitionParser;
 import org.osgi.service.blueprint.reflect.ComponentMetadata;
 import org.osgi.service.blueprint.reflect.Metadata;
@@ -36,22 +36,22 @@ public class ClusteringBPNamespaceHandler implements 
NamespaceHandler {
     public ComponentMetadata decorate(Node node, ComponentMetadata component, 
ParserContext context) {
         return null;
     }
-    
+
     public Metadata parse(Element element, ParserContext context) {
         String s = element.getLocalName();
         if ("failover".equals(s)) {
             return new 
SimpleBPBeanDefinitionParser(FailoverFeature.class).parse(element, context);
         } else if ("loadDistributor".equals(s)) {
-            return new 
SimpleBPBeanDefinitionParser(LoadDistributorTargetSelector.class).parse(element,
 context);
+            return new 
SimpleBPBeanDefinitionParser(LoadDistributorFeature.class).parse(element, 
context);
         }
         return null;
     }
-    
+
     @SuppressWarnings("rawtypes")
     public Set<Class> getManagedClasses() {
         return null;
     }
-    
+
     public URL getSchemaLocation(String namespace) {
         return 
getClass().getClassLoader().getResource("schemas/clustering.xsd");
     }

Reply via email to