Author: ningjiang
Date: Fri Jul  8 04:40:35 2011
New Revision: 1144155

URL: http://svn.apache.org/viewvc?rev=1144155&view=rev
Log:
CAMEL-4190 Fixed the WARNING message when create a cxf endpoint from Spring bean

Added:
    
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
   (with props)
Modified:
    
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfEndpointBean.java

Modified: 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfEndpointBean.java
URL: 
http://svn.apache.org/viewvc/camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfEndpointBean.java?rev=1144155&r1=1144154&r2=1144155&view=diff
==============================================================================
--- 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfEndpointBean.java
 (original)
+++ 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfEndpointBean.java
 Fri Jul  8 04:40:35 2011
@@ -34,7 +34,7 @@ public class CxfEndpointBean extends Abs
     private String beanName;
 
     public CxfEndpointBean() {
-        this(new ReflectionServiceFactoryBean());
+        this(new CxfReflectionServiceFactoryBean());
     }
     
     public CxfEndpointBean(ReflectionServiceFactoryBean factory) {

Added: 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
URL: 
http://svn.apache.org/viewvc/camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java?rev=1144155&view=auto
==============================================================================
--- 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
 (added)
+++ 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
 Fri Jul  8 04:40:35 2011
@@ -0,0 +1,27 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cxf.spring;
+
+import org.apache.cxf.service.factory.ReflectionServiceFactoryBean;
+
+public class CxfReflectionServiceFactoryBean extends 
ReflectionServiceFactoryBean {
+    
+    protected void checkServiceClassAnnotations(Class<?> sc) {
+        //Do nothing here
+    }
+
+}

Propchange: 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
camel/branches/camel-2.7.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/spring/CxfReflectionServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date


Reply via email to