EMMA Coverage Report (generated Wed Jun 22 19:47:49 EDT 2011)
[all classes][org.jclouds.ec2.compute.suppliers]

COVERAGE SUMMARY FOR SOURCE FILE [EC2ImageSupplier.java]

nameclass, %method, %block, %line, %
EC2ImageSupplier.java0%   (0/1)0%   (0/2)0%   (0/13)0%   (0/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EC2ImageSupplier0%   (0/1)0%   (0/2)0%   (0/13)0%   (0/4)
EC2ImageSupplier (Supplier): void 0%   (0/1)0%   (0/6)0%   (0/3)
get (): Set 0%   (0/1)0%   (0/7)0%   (0/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.ec2.compute.suppliers;
20 
21import java.util.Map;
22import java.util.Set;
23 
24import javax.inject.Inject;
25import javax.inject.Singleton;
26 
27import org.jclouds.ec2.compute.domain.RegionAndName;
28import org.jclouds.compute.domain.Image;
29 
30import com.google.common.base.Supplier;
31import com.google.common.collect.Sets;
32 
33/**
34 * 
35 * @author Adrian Cole
36 */
37@Singleton
38public class EC2ImageSupplier implements Supplier<Set<? extends Image>> {
39   private final Supplier<Map<RegionAndName, ? extends Image>> map;
40 
41   @Inject
42   EC2ImageSupplier(Supplier<Map<RegionAndName, ? extends Image>> map) {
43      this.map = map;
44   }
45 
46   @Override
47   public Set<? extends Image> get() {
48      return Sets.newLinkedHashSet(map.get().values());
49   }
50 
51}

[all classes][org.jclouds.ec2.compute.suppliers]
EMMA 2.0.5312 (C) Vladimir Roubtsov