org.jclouds.rest.internal
Class ApiContextImpl<A>

java.lang.Object
  extended by org.jclouds.internal.ContextImpl
      extended by org.jclouds.rest.internal.ApiContextImpl<A>
All Implemented Interfaces:
Closeable, Context, Location, ApiContext<A>

public class ApiContextImpl<A>
extends ContextImpl
implements ApiContext<A>


Constructor Summary
protected ApiContextImpl(String name, ProviderMetadata providerMetadata, com.google.common.base.Supplier<Credentials> creds, Utils utils, Closer closer, com.google.inject.Injector injector, com.google.inject.TypeLiteral<A> api)
           
 
Method Summary
 A getApi()
          low-level api to the cloud.
 
Methods inherited from class org.jclouds.internal.ContextImpl
close, equals, getDescription, getId, getIdentity, getIso3166Codes, getMetadata, getName, getParent, getProviderMetadata, getScope, hashCode, isOpen, toString, utils
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.Context
close, getIdentity, getName, getProviderMetadata, isOpen, utils
 
Methods inherited from interface org.jclouds.domain.Location
getDescription, getId, getIso3166Codes, getMetadata, getParent, getScope
 

Constructor Detail

ApiContextImpl

@Inject
protected ApiContextImpl(String name,
                                ProviderMetadata providerMetadata,
                                com.google.common.base.Supplier<Credentials> creds,
                                Utils utils,
                                Closer closer,
                                com.google.inject.Injector injector,
                                com.google.inject.TypeLiteral<A> api)
Method Detail

getApi

public A getApi()
Description copied from interface: ApiContext
low-level api to the cloud. Threadsafe implementations will return a singleton.

Specified by:
getApi in interface ApiContext<A>
Returns:
a connection to the cloud where all methods block


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.