Author: jstrachan
Date: Fri Jun 13 06:22:29 2008
New Revision: 667524

URL: http://svn.apache.org/viewvc?rev=667524&view=rev
Log:
added extra public method so processors / patterns can set the MEP if they need 
to

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

Modified: 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java?rev=667524&r1=667523&r2=667524&view=diff
==============================================================================
--- 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java 
(original)
+++ 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java 
Fri Jun 13 06:22:29 2008
@@ -38,6 +38,15 @@
     ExchangePattern getPattern();
 
     /**
+     * Allows the [EMAIL PROTECTED] ExchangePattern} (MEP) of this exchange to 
be customized.
+     *
+     * This typically won't be required as an exchange can be created with a 
specific MEP
+     * by calling [EMAIL PROTECTED] Endpoint#createExchange(ExchangePattern)} 
but it is here just in case
+     * it is needed.
+     */
+    void setPattern(ExchangePattern pattern);
+
+    /**
      * Returns a property associated with this exchange by name
      *
      * @param name the name of the property
@@ -210,4 +219,5 @@
      * @param id
      */
     void setExchangeId(String id);
+
 }


Reply via email to