Package org.jclouds.compute.config
Class ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
- java.lang.Object
 - 
- com.google.inject.AbstractModule
 - 
- org.jclouds.compute.config.ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
 
 
 
- 
- All Implemented Interfaces:
 com.google.inject.Module
- Enclosing class:
 - ComputeServiceAdapterContextModule<N,H,I,L>
 
public static class ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L> extends com.google.inject.AbstractModuleinstall this, if you want to use your computeservice adapter to handle locations. Note that if you do this, you'll want to instantiate a subclass to prevent type erasure. ex.install(new LocationsFromComputeServiceAdapterModule<NodeMetadata, Hardware, Image, Location>() { });notinstall(new LocationsFromComputeServiceAdapterModule<NodeMetadata, Hardware, Image, Location>());
 
- 
- 
Constructor Summary
Constructors Constructor Description LocationsFromComputeServiceAdapterModule() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()protected LocationsSuppliersupplyLocationsFromComputeServiceAdapter(ComputeServiceAdapter<N,H,I,L> adapter, com.google.common.base.Function<L,Location> transformer)- 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding 
 - 
 
 - 
 
- 
- 
Method Detail
- 
configure
protected void configure()
- Overrides:
 configurein classcom.google.inject.AbstractModule
 
- 
supplyLocationsFromComputeServiceAdapter
@Provides @Singleton protected final LocationsSupplier supplyLocationsFromComputeServiceAdapter(ComputeServiceAdapter<N,H,I,L> adapter, com.google.common.base.Function<L,Location> transformer)
 
 - 
 
 -