You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2009/06/27 19:42:24 UTC
svn commit: r789001 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
Author: hadrian
Date: Sat Jun 27 17:42:23 2009
New Revision: 789001
URL: http://svn.apache.org/viewvc?rev=789001&view=rev
Log:
CAMEL-1078. Remove unnecessary methods on DefaultExchange.
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java?rev=789001&r1=789000&r2=789001&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java Sat Jun 27 17:42:23 2009
@@ -185,7 +185,7 @@
public Message getIn() {
if (in == null) {
- in = createInMessage();
+ in = new DefaultMessage();
configureMessage(in);
}
return in;
@@ -207,7 +207,7 @@
public Message getOut(boolean lazyCreate) {
if (out == null && lazyCreate) {
out = (in != null && in instanceof MessageSupport)
- ? ((MessageSupport)in).newInstance() : createOutMessage();
+ ? ((MessageSupport)in).newInstance() : new DefaultMessage();
configureMessage(out);
}
return out;
@@ -269,7 +269,7 @@
public Message getFault(boolean lazyCreate) {
if (fault == null && lazyCreate) {
fault = (in != null && in instanceof MessageSupport)
- ? ((MessageSupport)in).newInstance() : createFaultMessage();
+ ? ((MessageSupport)in).newInstance() : new DefaultMessage();
configureMessage(fault);
}
return fault;
@@ -348,27 +348,6 @@
}
/**
- * Factory method used to lazily create the IN message
- */
- protected Message createInMessage() {
- return new DefaultMessage();
- }
-
- /**
- * Factory method to lazily create the OUT message
- */
- protected Message createOutMessage() {
- return new DefaultMessage();
- }
-
- /**
- * Factory method to lazily create the FAULT message
- */
- protected Message createFaultMessage() {
- return new DefaultMessage();
- }
-
- /**
* Configures the message after it has been set on the exchange
*/
protected void configureMessage(Message message) {
@@ -388,5 +367,4 @@
}
return answer;
}
-
}