camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <>
Subject [jira] Created: (CAMEL-1822) Cleanup unnecessary copy related methods in Exchange
Date Fri, 10 Jul 2009 14:42:33 GMT
Cleanup unnecessary copy related methods in Exchange

                 Key: CAMEL-1822
             Project: Apache Camel
          Issue Type: Improvement
    Affects Versions: 2.0-M2
            Reporter: Hadrian Zbarcea
            Assignee: Hadrian Zbarcea
             Fix For: 2.0.0

There are currently 4 apis related to copying exchanges that overlap for the most part, are
confusing and unnecessary.  The consensus is to replace:

    Exchange newInstance();
    Exchange copy();
    Exchange newCopy(boolean handoverOnCompletion);
    void copyFrom(Exchange source);
    Exchange copy();
    Exchange copy(boolean handoverOnCompletion);

newInstance() does not bring much value,
copyFrom() is semantically equivalent to copy()
newCopy() will be just renamed to copy(boolean) 
See nabble thread:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message