camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r956451 - /camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java
Date Mon, 21 Jun 2010 06:47:17 GMT
Author: ningjiang
Date: Mon Jun 21 03:21:18 2010
New Revision: 956451

URL: http://svn.apache.org/viewvc?rev=956451&view=rev
Log:
CAMEL-1371 Added tags for wiki doc

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java?rev=956451&r1=956450&r2=956451&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/resequencer/MyFileNameExpression.java
Mon Jun 21 03:21:18 2010
@@ -20,7 +20,7 @@ import java.util.List;
 
 import org.apache.camel.Exchange;
 import org.apache.camel.Expression;
-
+//START SNIPPET: example
 public class MyFileNameExpression implements Expression {
     
     public String getFileName(Exchange exchange) {
@@ -28,6 +28,7 @@ public class MyFileNameExpression implem
     }
     
     public Object evaluate(Exchange exchange) {
+        // parser the file name with YYYYMMDD-DNNN pattern
         String fileName = getFileName(exchange);
         String[] files = fileName.split("-D");
         Long answer = Long.parseLong(files[0]) * 1000 + Long.parseLong(files[1]);
@@ -41,3 +42,4 @@ public class MyFileNameExpression implem
     }
 
 }
+//END SNIPPET: example



Mime
View raw message