You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/06/13 15:22:30 UTC
svn commit: r667524 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
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 {@link 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 {@link 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);
+
}