EMMA Coverage Report (generated Wed Aug 10 12:30:04 EDT 2011)
[all classes][org.jclouds.aws.s3.blobstore.config]

COVERAGE SUMMARY FOR SOURCE FILE [AWSS3BlobStoreContextModule.java]

nameclass, %method, %block, %line, %
AWSS3BlobStoreContextModule.java100% (2/2)100% (4/4)100% (49/49)100% (9/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AWSS3BlobStoreContextModule100% (1/1)100% (3/3)100% (43/43)100% (9/9)
AWSS3BlobStoreContextModule (): void 100% (1/1)100% (3/3)100% (1/1)
bindContext (): void 100% (1/1)100% (11/11)100% (2/2)
configure (): void 100% (1/1)100% (29/29)100% (6/6)
     
class AWSS3BlobStoreContextModule$1100% (1/1)100% (1/1)100% (6/6)100% (1/1)
AWSS3BlobStoreContextModule$1 (AWSS3BlobStoreContextModule): void 100% (1/1)100% (6/6)100% (1/1)

1/**
2 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
18 */
19package org.jclouds.aws.s3.blobstore.config;
20 
21import org.jclouds.aws.s3.AWSS3AsyncClient;
22import org.jclouds.aws.s3.AWSS3Client;
23import org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore;
24import org.jclouds.aws.s3.blobstore.AWSS3BlobStore;
25import org.jclouds.aws.s3.blobstore.strategy.AsyncMultipartUploadStrategy;
26import org.jclouds.aws.s3.blobstore.strategy.MultipartUploadStrategy;
27import org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy;
28import org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy;
29import org.jclouds.blobstore.BlobStoreContext;
30import org.jclouds.blobstore.internal.BlobStoreContextImpl;
31import org.jclouds.s3.blobstore.S3AsyncBlobStore;
32import org.jclouds.s3.blobstore.S3BlobStore;
33import org.jclouds.s3.blobstore.config.S3BlobStoreContextModule;
34 
35import com.google.inject.Scopes;
36import com.google.inject.TypeLiteral;
37 
38/**
39 * 
40 * 
41 * @author Tibor Kiss
42 */
43public class AWSS3BlobStoreContextModule extends S3BlobStoreContextModule {
44 
45   @Override
46   protected void configure() {
47      super.configure();
48      bind(S3AsyncBlobStore.class).to(AWSS3AsyncBlobStore.class).in(Scopes.SINGLETON);
49      bind(S3BlobStore.class).to(AWSS3BlobStore.class).in(Scopes.SINGLETON);
50      bind(MultipartUploadStrategy.class).to(SequentialMultipartUploadStrategy.class);
51      bind(AsyncMultipartUploadStrategy.class).to(ParallelMultipartUploadStrategy.class);
52   }
53 
54   @Override
55   protected void bindContext() {
56      bind(BlobStoreContext.class).to(new TypeLiteral<BlobStoreContextImpl<AWSS3Client, AWSS3AsyncClient>>() {
57      }).in(Scopes.SINGLETON);
58   }
59 
60}

[all classes][org.jclouds.aws.s3.blobstore.config]
EMMA 2.0.5312 (C) Vladimir Roubtsov