Package org.jclouds.rest.internal
Class ApiContextImpl<A>
- java.lang.Object
-
- org.jclouds.internal.ContextImpl
-
- org.jclouds.rest.internal.ApiContextImpl<A>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Context
,Location
,ApiContext<A>
public class ApiContextImpl<A> extends ContextImpl implements ApiContext<A>
-
-
Constructor Summary
Constructors Modifier Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 interfaceApiContext<A>
- Returns:
- a connection to the cloud where all methods block
-
-