Re: [DISCUSS] Exchange copy api cleanup

2009-07-08 Thread Claus Ibsen
On Thu, Jul 9, 2009 at 12:14 AM, Hadrian Zbarcea wrote: > Currently the Exchange has the following 4 apis that I think can be > consolidated into 1 or 2 methods: > >   Exchange newInstance(); +1 to remove >   Exchange copy(); +1 to keep >   Exchange newCopy(boolean handoverOnCompletion); -1 = m

[DISCUSS] Exchange copy api cleanup

2009-07-08 Thread Hadrian Zbarcea
Currently the Exchange has the following 4 apis that I think can be consolidated into 1 or 2 methods: Exchange newInstance(); Exchange copy(); Exchange newCopy(boolean handoverOnCompletion); void copyFrom(Exchange source); I think both copyFrom(Exchange) and newInstance() could eas