activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r521761 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java
Date Fri, 23 Mar 2007 15:26:02 GMT
Author: jstrachan
Date: Fri Mar 23 08:26:01 2007
New Revision: 521761

URL: http://svn.apache.org/viewvc?view=rev&rev=521761
Log:
added a little toString() method

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java?view=diff&rev=521761&r1=521760&r2=521761
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Route.java Fri Mar 23 08:26:01
2007
@@ -28,7 +28,7 @@
  */
 public class Route<E extends Exchange> {
 
-	final private Map<String, Object> properties = new HashMap<String, Object>(16);
+	private final Map<String, Object> properties = new HashMap<String, Object>(16);
 	private Endpoint<E> endpoint;
 	private Processor<E> processor;
 
@@ -37,7 +37,12 @@
 		this.processor = processor;
 	}
 
-	public Endpoint<E> getEndpoint() {
+    @Override
+    public String toString() {
+        return "Route[" + endpoint + " -> " + processor + "]";
+    }
+
+    public Endpoint<E> getEndpoint() {
 		return endpoint;
 	}
 



Mime
View raw message