camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r572608 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: Exchange.java impl/DefaultExchange.java
Date Tue, 04 Sep 2007 10:32:00 GMT
Author: jstrachan
Date: Tue Sep  4 03:31:57 2007
New Revision: 572608

URL: http://svn.apache.org/viewvc?rev=572608&view=rev
Log:
minor refactor of Exchange.getExchangePattern() -> Exchange.getPattern()

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/Exchange.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.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=572608&r1=572607&r2=572608&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 Tue Sep 
4 03:31:57 2007
@@ -35,7 +35,7 @@
      *
      * @return the message exchange pattern of this exchange
      */
-    ExchangePattern getExchangePattern();
+    ExchangePattern getPattern();
 
     /**
      * Returns a property associated with this exchange by name

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java?rev=572608&r1=572607&r2=572608&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
Tue Sep  4 03:31:57 2007
@@ -42,15 +42,15 @@
     private Throwable exception;
     private String exchangeId = DefaultExchange.DEFAULT_ID_GENERATOR.generateId();
     private UnitOfWork unitOfWork;
-    private ExchangePattern exchangePattern;
+    private ExchangePattern pattern;
 
     public DefaultExchange(CamelContext context) {
         this(context, ExchangePattern.InOnly);
     }
 
-    public DefaultExchange(CamelContext context, ExchangePattern exchangePattern) {
+    public DefaultExchange(CamelContext context, ExchangePattern pattern) {
         this.context = context;
-        this.exchangePattern = exchangePattern;
+        this.pattern = pattern;
     }
 
     @Override
@@ -83,7 +83,7 @@
         setException(exchange.getException());
 
         unitOfWork = exchange.getUnitOfWork();
-        exchangePattern = exchange.getExchangePattern();
+        pattern = exchange.getPattern();
     }
 
     private static void safeCopy(Message message, Exchange exchange, Message that) {
@@ -188,12 +188,12 @@
         this.exception = exception;
     }
 
-    public ExchangePattern getExchangePattern() {
-        return exchangePattern;
+    public ExchangePattern getPattern() {
+        return pattern;
     }
 
-    public void setExchangePattern(ExchangePattern exchangePattern) {
-        this.exchangePattern = exchangePattern;
+    public void setPattern(ExchangePattern pattern) {
+        this.pattern = pattern;
     }
 
     public void throwException() throws Exception {



Mime
View raw message