servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r387863 - /incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java
Date Wed, 22 Mar 2006 13:52:27 GMT
Author: gnodet
Date: Wed Mar 22 05:52:06 2006
New Revision: 387863

URL: http://svn.apache.org/viewcvs?rev=387863&view=rev
Log:
Add a toString to MessageExchange.Role

Modified:
    incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java

Modified: incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java?rev=387863&r1=387862&r2=387863&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java
(original)
+++ incubator/servicemix/trunk/servicemix-jbi/src/main/java/javax/jbi/messaging/MessageExchange.java
Wed Mar 22 05:52:06 2006
@@ -82,12 +82,20 @@
 
     public static final class Role
     {
-        public static final Role PROVIDER = new Role();
+        public static final Role PROVIDER = new Role("Provider");
 
-        public static final Role CONSUMER = new Role();
+        public static final Role CONSUMER = new Role("Consumer");
 
-        private Role()
+        private String mRole;
+        
+        private Role(String role)
         {
+            mRole = role;
+        }
+        
+        public String toString()
+        {
+            return mRole;
         }
     }
 }



Mime
View raw message