camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r831870 - /camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java
Date Mon, 02 Nov 2009 11:58:02 GMT
Author: davsclaus
Date: Mon Nov  2 11:58:02 2009
New Revision: 831870

URL: http://svn.apache.org/viewvc?rev=831870&view=rev
Log:
Fixed unit test

Modified:
    camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java

Modified: camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java?rev=831870&r1=831869&r2=831870&view=diff
==============================================================================
--- camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java
(original)
+++ camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java
Mon Nov  2 11:58:02 2009
@@ -24,15 +24,19 @@
 import org.apache.camel.component.bean.XPathAnnotationExpressionFactory;
 import org.apache.camel.language.LanguageAnnotation;
 import org.apache.camel.language.NamespacePrefix;
+import org.w3c.dom.NodeList;
 
 @Retention(RetentionPolicy.RUNTIME)
 @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
 @LanguageAnnotation(language = "xpath", factory = XPathAnnotationExpressionFactory.class)
 public @interface MyXPath {
     String value();
+
     // You can add the namespaces as the default value of the annotation
     NamespacePrefix[] namespaces() default {
     @NamespacePrefix(prefix = "n1", uri = "http://example.org/ns1"),
     @NamespacePrefix(prefix = "n2", uri = "http://example.org/ns2")};
+
+    Class<?> resultType() default NodeList.class;
 }
 //END SNIPPET: example
\ No newline at end of file



Mime
View raw message