camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r773816 - /camel/trunk/components/camel-spring/src/test/java/org/apache/camel/component/xslt/MyXPath.java
Date Tue, 12 May 2009 07:58:24 GMT
Author: ningjiang
Date: Tue May 12 07:58:23 2009
New Revision: 773816

URL: http://svn.apache.org/viewvc?rev=773816&view=rev
Log:
Added snippet tages for XPath

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=773816&r1=773815&r2=773816&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
Tue May 12 07:58:23 2009
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 package org.apache.camel.component.xslt;
-
+//START SNIPPET: example
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -30,8 +30,9 @@
 @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")};
 }
+//END SNIPPET: example
\ No newline at end of file



Mime
View raw message