org.jclouds.softlayer.compute.config
Class SoftLayerComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<SoftLayerClient,SoftLayerAsyncClient,VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>
              extended by org.jclouds.softlayer.compute.config.SoftLayerComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module

public class SoftLayerComputeServiceContextModule
extends ComputeServiceAdapterContextModule<SoftLayerClient,SoftLayerAsyncClient,VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
authException
 
Constructor Summary
SoftLayerComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
 com.google.common.base.Supplier<ProductPackage> getProductPackage(long seconds, SoftLayerClient client, String virtualGuestPackageName)
          Many requests need the same productPackage, which is in this case the package for virtual guests.
 Iterable<ProductItemPrice> prices(String prices)
           
protected  TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
          The default template if none is provided.
 
Methods inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages, provideLocations
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, provideTemplateOptions, supplyImageCache, supplySizeCache
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLayerComputeServiceContextModule

public SoftLayerComputeServiceContextModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class ComputeServiceAdapterContextModule<SoftLayerClient,SoftLayerAsyncClient,VirtualGuest,Iterable<ProductItem>,ProductItem,Datacenter>

provideTemplate

protected TemplateBuilder provideTemplate(com.google.inject.Injector injector,
                                          TemplateBuilder template)
Description copied from class: BaseComputeServiceContextModule
The default template if none is provided.

Overrides:
provideTemplate in class BaseComputeServiceContextModule

getProductPackage

@Provides
@Singleton
public com.google.common.base.Supplier<ProductPackage> getProductPackage(@Named(value="jclouds.session-interval")
                                                                                            long seconds,
                                                                                            SoftLayerClient client,
                                                                                            @Named(value="jclouds.softlayer.virtualguest.package-name")
                                                                                            String virtualGuestPackageName)
Many requests need the same productPackage, which is in this case the package for virtual guests. We may at some point need to make an annotation qualifying it as such. ex. @VirtualGuest


prices

@Provides
@Singleton
public Iterable<ProductItemPrice> prices(@Named(value="jclouds.softlayer.virtualguest.prices")
                                                            String prices)


Copyright © 2009-2011 jclouds. All Rights Reserved.