activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r520164 - /activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java
Date Mon, 19 Mar 2007 23:19:07 GMT
Author: chirino
Date: Mon Mar 19 16:19:06 2007
New Revision: 520164

URL: http://svn.apache.org/viewvc?view=rev&rev=520164
Log:
Enhanced the example interceptor a little so it's more ilustrative.

Modified:
    activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java?view=diff&rev=520164&r1=520163&r2=520164
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/RouteBuilderTest.java Mon
Mar 19 16:19:06 2007
@@ -214,10 +214,16 @@
     	
         final InterceptorProcessor<Exchange> interceptor1 = new InterceptorProcessor<Exchange>()
{
         };
-        final InterceptorProcessor<Exchange> interceptor2 = new InterceptorProcessor<Exchange>()
{    	
+
+        // START SNIPPET: e7        
+        final InterceptorProcessor<Exchange> interceptor2 = new InterceptorProcessor<Exchange>()
{
+        	public void onExchange(Exchange exchange) {
+        		System.out.println("START of onExchange: "+exchange);
+        		next.onExchange(exchange);
+        		System.out.println("END of onExchange: "+exchange);
+        	}
         };
 
-        // START SNIPPET: e7
         RouteBuilder<Exchange> builder = new RouteBuilder<Exchange>() {
             public void configure() {
                 from("queue:a")



Mime
View raw message