org.jclouds.cloudsigma.compute.config
Class CloudSigmaComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<CloudSigmaClient,CloudSigmaAsyncClient,ServerInfo,Hardware,DriveInfo,Location>
              extended by org.jclouds.cloudsigma.compute.config.CloudSigmaComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
CloudSigmaZurichComputeServiceContextModule

public class CloudSigmaComputeServiceContextModule
extends ComputeServiceAdapterContextModule<CloudSigmaClient,CloudSigmaAsyncClient,ServerInfo,Hardware,DriveInfo,Location>

Author:
Adrian Cole

Nested Class Summary
static class CloudSigmaComputeServiceContextModule.GetDrive
           
 
Field Summary
 
Fields inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
authException
 
Constructor Summary
CloudSigmaComputeServiceContextModule()
           
 
Method Summary
protected  com.google.common.cache.Cache<String,DriveInfo> cache(CloudSigmaComputeServiceContextModule.GetDrive getDrive)
           
protected  void configure()
           
protected  TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
          The default template if none is provided.
protected  com.google.common.base.Predicate<DriveInfo> supplyDriveUnclaimed(DriveClaimed driveClaimed, ComputeServiceConstants.Timeouts timeouts)
           
 
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

CloudSigmaComputeServiceContextModule

public CloudSigmaComputeServiceContextModule()
Method Detail

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

configure

protected void configure()
Overrides:
configure in class ComputeServiceAdapterContextModule<CloudSigmaClient,CloudSigmaAsyncClient,ServerInfo,Hardware,DriveInfo,Location>

cache

@Provides
@Singleton
protected com.google.common.cache.Cache<String,DriveInfo> cache(CloudSigmaComputeServiceContextModule.GetDrive getDrive)

supplyDriveUnclaimed

@Provides
@Singleton
protected com.google.common.base.Predicate<DriveInfo> supplyDriveUnclaimed(DriveClaimed driveClaimed,
                                                                                              ComputeServiceConstants.Timeouts timeouts)


Copyright © 2009-2011 jclouds. All Rights Reserved.