jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <andr...@apache.org>
Subject Re: Implementing MultipartUploadStrategy
Date Mon, 05 Aug 2013 15:58:04 GMT
Quoting Nikola Knežević <laladelausanne@gmail.com>:

> On Jul 29, 2013, at 13:46 , Nikola Knezevic <laladelausanne@gmail.com> wrote:
>
>> a small project (written by Marcus Brandenburger) that shows the
>> problem is available here:
>> <https://gist.github.com/anonymous/c139fae4b9065c703fa5>
>>
>> I modified it a little bit, to include the complete structure that   
>> our code has.
>>
>>
>> On Thu, Jul 25, 2013 at 4:34 PM, Andrew Phillips <andrewp@apache.org> wrote:
>>>
>>>
>>> Could you create a Gist or Pastie of the section where you're creating the
>>> context and supplying the modules (if any) to be bound..?
>
> Hi guys,
>
> did anyone tried the project I send? Can anyone tell me whether the   
> approach we took is good or not?

In MyCustomMultipartUploadModule [1], could you change the binding to  
a linked binding [2], e.g.

   
bind(SequentialMultipartUploadStrategy.class).to(MyCustomMultipartUploadStrategy.class);

instead of

   
bind(MultipartUploadStrategy.class).to(MyCustomMultipartUploadStrategy.class);

?

Regards

ap

[1]  
https://gist.github.com/anonymous/c139fae4b9065c703fa5#file-mycustommultipartuploadmodule-java
[2] https://code.google.com/p/google-guice/wiki/LinkedBindings

Mime
View raw message