mirror of https://github.com/apache/jclouds.git
Issue 895: Correcting placement of rest client binding
This commit is contained in:
parent
1e3a8b04b6
commit
54ae36a92d
|
@ -22,10 +22,8 @@ import org.jclouds.compute.domain.OperatingSystem;
|
|||
import org.jclouds.ec2.compute.config.EC2ComputeServiceContextModule;
|
||||
import org.jclouds.ec2.compute.loaders.CreateSecurityGroupIfNeeded;
|
||||
import org.jclouds.ec2.compute.strategy.ReviseParsedImage;
|
||||
import org.jclouds.ec2.xml.DescribeImagesResponseHandler;
|
||||
import org.jclouds.openstack.nova.ec2.loaders.NovaCreateSecurityGroupIfNeeded;
|
||||
import org.jclouds.openstack.nova.ec2.strategy.NovaReviseParsedImage;
|
||||
import org.jclouds.openstack.nova.ec2.xml.NovaDescribeImagesResponseHandler;
|
||||
import org.jclouds.openstack.nova.v1_1.compute.functions.ImageToOperatingSystem;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
|
@ -44,7 +42,6 @@ public class NovaEC2ComputeServiceContextModule extends EC2ComputeServiceContext
|
|||
}).to(ImageToOperatingSystem.class);
|
||||
bind(ReviseParsedImage.class).to(NovaReviseParsedImage.class);
|
||||
bind(CreateSecurityGroupIfNeeded.class).to(NovaCreateSecurityGroupIfNeeded.class);
|
||||
bind(DescribeImagesResponseHandler.class).to(NovaDescribeImagesResponseHandler.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,11 +23,13 @@ import org.jclouds.ec2.EC2Client;
|
|||
import org.jclouds.ec2.config.EC2RestClientModule;
|
||||
import org.jclouds.ec2.suppliers.DescribeAvailabilityZonesInRegion;
|
||||
import org.jclouds.ec2.xml.CreateVolumeResponseHandler;
|
||||
import org.jclouds.ec2.xml.DescribeImagesResponseHandler;
|
||||
import org.jclouds.location.config.LocationModule;
|
||||
import org.jclouds.location.suppliers.RegionIdToZoneIdsSupplier;
|
||||
import org.jclouds.location.suppliers.ZoneIdsSupplier;
|
||||
import org.jclouds.location.suppliers.derived.ZoneIdsFromRegionIdToZoneIdsValues;
|
||||
import org.jclouds.openstack.nova.ec2.xml.NovaCreateVolumeResponseHandler;
|
||||
import org.jclouds.openstack.nova.ec2.xml.NovaDescribeImagesResponseHandler;
|
||||
import org.jclouds.rest.ConfiguresRestClient;
|
||||
|
||||
import com.google.inject.Scopes;
|
||||
|
@ -47,6 +49,7 @@ public class NovaEC2RestClientModule extends EC2RestClientModule<EC2Client, EC2A
|
|||
protected void configure() {
|
||||
super.configure();
|
||||
bind(CreateVolumeResponseHandler.class).to(NovaCreateVolumeResponseHandler.class).in(Scopes.SINGLETON);
|
||||
bind(DescribeImagesResponseHandler.class).to(NovaDescribeImagesResponseHandler.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue