javax.inject.Injectcom.google.inject.Inject



Project jclouds/jclouds in file ....ec2.compute.strategy.AWSEC2ListNodesStrategy.java (2012-07-16)
@@ -29,7 +29,6 @@ import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 
-import javax.inject.Inject;
 import javax.inject.Named;
 import javax.inject.Singleton;
 
@@ -45,6 +44,7 @@ import org.jclouds.location.Region;
 
 import com.google.common.base.Function;
 import com.google.common.base.Supplier;
+import com.google.inject.Inject;
 
 /**
  * 
@@ -76,7 +76,7 @@ public class AWSEC2ListNodesStrategy extends EC2ListNodesStrategy {
                               .describeSpotInstanceRequestsInRegion(from);
                   }
 
-               }, executor, null, logger, "reservations")), spotConverter), notNull());
+               }, executor, maxTime, logger, "reservations")), spotConverter), notNull());
 
       return concat(super.pollRunningInstances(), spots);
    }
Project jclouds/legacy-jclouds in file ....ec2.compute.strategy.AWSEC2ListNodesStrategy.java (2012-07-16)
@@ -29,7 +29,6 @@ import java.util.Set;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 
-import javax.inject.Inject;
 import javax.inject.Named;
 import javax.inject.Singleton;
 
@@ -45,6 +44,7 @@ import org.jclouds.location.Region;
 
 import com.google.common.base.Function;
 import com.google.common.base.Supplier;
+import com.google.inject.Inject;
 
 /**
  * 
@@ -76,7 +76,7 @@ public class AWSEC2ListNodesStrategy extends EC2ListNodesStrategy {
                               .describeSpotInstanceRequestsInRegion(from);
                   }
 
-               }, executor, null, logger, "reservations")), spotConverter), notNull());
+               }, executor, maxTime, logger, "reservations")), spotConverter), notNull());
 
       return concat(super.pollRunningInstances(), spots);
    }
Project jclouds/jclouds in file ...strategy.internal.ListBlobMetadataInContainer.java (2009-11-17)
@@ -26,7 +26,6 @@ package org.jclouds.blobstore.strategy.internal;
 import java.util.SortedSet;
 import java.util.concurrent.TimeUnit;
 
-import javax.inject.Inject;
 import javax.inject.Named;
 import javax.inject.Singleton;
 
@@ -42,6 +41,7 @@ import org.jclouds.blobstore.strategy.ListBlobMetadataStrategy;
 import org.jclouds.util.Utils;
 
 import com.google.common.collect.Sets;
+import com.google.inject.Inject;
 
 /**
  * Retrieves all blobs in the blobstore by the most efficient means possible.
@@ -65,8 +65,8 @@ public class ListBlobMetadataInContainer implements ListBlobMetadataStrategy {
 
    public SortedSet<? extends BlobMetadata> execute(String container, ListContainerOptions options) {
       try {
-         ListResponse<? extends ResourceMetadata> resources = connection.list(container,
-                  options).get(requestTimeoutMilliseconds, TimeUnit.MILLISECONDS);
+         ListResponse<? extends ResourceMetadata> resources = connection.list(container, options)
+                  .get(requestTimeoutMilliseconds, TimeUnit.MILLISECONDS);
          SortedSet<BlobMetadata> blobM = Sets.newTreeSet();
          for (ResourceMetadata from : resources) {
             if (from.getType() == ResourceType.BLOB)
Project jclouds/jclouds in file ...rg.jclouds.rest.internal.AsyncRestClientProxy.java (2009-11-17)
@@ -36,7 +36,6 @@ import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
 
 import javax.annotation.Resource;
-import javax.inject.Inject;
 import javax.inject.Named;
 import javax.inject.Singleton;
 
@@ -49,6 +48,7 @@ import org.jclouds.logging.Logger;
 import org.jclouds.rest.InvocationContext;
 
 import com.google.common.base.Function;
+import com.google.inject.Inject;
 import com.google.inject.Injector;
 import com.google.inject.TypeLiteral;
 import com.google.inject.internal.Nullable;
@@ -88,7 +88,8 @@ public class AsyncRestClientProxy<T> implements InvocationHandler {
          return this.hashCode();
       } else if (method.getName().startsWith("new")) {
          return injector.getInstance(method.getReturnType());
-      } else if (util.getDelegateOrNull(method) != null &&Future.class.isAssignableFrom(method.getReturnType())) {
+      } else if (util.getDelegateOrNull(method) != null
+               && Future.class.isAssignableFrom(method.getReturnType())) {
          method = util.getDelegateOrNull(method);
          logger.trace("Converting %s.%s", declaring.getSimpleName(), method.getName());
          Function<Exception, ?> exceptionParser = util
Project jclouds/legacy-jclouds in file ...strategy.internal.ListBlobMetadataInContainer.java (2009-11-17)
@@ -26,7 +26,6 @@ package org.jclouds.blobstore.strategy.internal;
 import java.util.SortedSet;
 import java.util.concurrent.TimeUnit;
 
-import javax.inject.Inject;
 import javax.inject.Named;
 import javax.inject.Singleton;
 
@@ -42,6 +41,7 @@ import org.jclouds.blobstore.strategy.ListBlobMetadataStrategy;
 import org.jclouds.util.Utils;
 
 import com.google.common.collect.Sets;
+import com.google.inject.Inject;
 
 /**
  * Retrieves all blobs in the blobstore by the most efficient means possible.
@@ -65,8 +65,8 @@ public class ListBlobMetadataInContainer implements ListBlobMetadataStrategy {
 
    public SortedSet<? extends BlobMetadata> execute(String container, ListContainerOptions options) {
       try {
-         ListResponse<? extends ResourceMetadata> resources = connection.list(container,
-                  options).get(requestTimeoutMilliseconds, TimeUnit.MILLISECONDS);
+         ListResponse<? extends ResourceMetadata> resources = connection.list(container, options)
+                  .get(requestTimeoutMilliseconds, TimeUnit.MILLISECONDS);
          SortedSet<BlobMetadata> blobM = Sets.newTreeSet();
          for (ResourceMetadata from : resources) {
             if (from.getType() == ResourceType.BLOB)