Sorry for confusion and blatant misreporting. I remember I once managed to get two errors (but not those two exact ones, just 2), and I can't reproduce it now. Anyhow, getting old...
When I try to do: public class FoobarMultipartUploadModule extends AbstractModule { @Override protected void configure() { bind(SequentialMultipartUploadStrategy.class).to(FoobarMultipartUploadStrategy.class); } } I get compilation errors: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project foobar-core: Compilation failure [ERROR] /work/foobar-test/foobar-core/src/main/java/com/foobar/foobar/modules/multipartupload/config/FoobarMultipartUploadModule.java:[17,54] no suitable method found for to(java.lang.Class<com. foobar. foobar.modules.multipartupload.internal.strategy.FoobarMultipartUploadStrategy>) [ERROR] method com.google.inject.binder.LinkedBindingBuilder.to(com.google.inject.Key<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy>) is not applicable [ERROR] (actual argument java.lang.Class<com. foobar. foobar.modules.multipartupload.internal.strategy.FoobarMultipartUploadStrategy> cannot be converted to com.google.inject.Key<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy> by method invocation conversion) [ERROR] method com.google.inject.binder.LinkedBindingBuilder.to(com.google.inject.TypeLiteral<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy>) is not applicable [ERROR] (actual argument java.lang.Class<com. foobar. foobar.modules.multipartupload.internal.strategy.FoobarMultipartUploadStrategy> cannot be converted to com.google.inject.TypeLiteral<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy> by method invocation conversion) [ERROR] method com.google.inject.binder.LinkedBindingBuilder.to(java.lang.Class<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy>) is not applicable [ERROR] (actual argument java.lang.Class<com. foobar. foobar.modules.multipartupload.internal.strategy.FoobarMultipartUploadStrategy> cannot be converted to java.lang.Class<? extends org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy> by method invocation conversion) because FoobarMultiparUploadStrategy does not extend SequentialMultipartUploadStrategy (it extends MultipartUploadStrategy, as it doesn't make much sense to extend SequentialMultipartUploadStrategy). snipet: public class FoobarMultipartUploadStrategy implements MultipartUploadStrategy { private final AWSS3Client client; @Resource @Named(BlobStoreConstants.BLOBSTORE_LOGGER) private org.jclouds.logging.Logger logger = org.jclouds.logging.Logger.NULL; @Inject public FoobarMultipartUploadStrategy(AWSS3Client client, BlobToObject blobToObject, MultipartUploadSlicingAlgorithm algorithm, PayloadSlicer slicer) { ... } ... } On Wed, Jul 24, 2013 at 1:51 PM, Andrew Phillips <andr...@apache.org> wrote: >> thanks. We tried that approach as well, but as the OP in [1] states at >> the end, we now get 2 errors (the same as OP had). > > > Just to be clear: it's complaining about: > > com.google.common.base.Supplier<javax.net.ssl.SSLContext> annotated with > @com.google.inject.name.Named(value=untrusted) was bound. > ... > No implementation for javax.net.ssl.HostnameVerifier annotated with > @com.google.inject.name.Named(value=untrusted) was bound. > > now? > > ap