org.jclouds.rest.internal
Class ApiContextImpl<A>
java.lang.Object
org.jclouds.internal.ContextImpl
org.jclouds.rest.internal.ApiContextImpl<A>
- All Implemented Interfaces:
- Closeable, Context, Location, ApiContext<A>
public class ApiContextImpl<A>
- extends ContextImpl
- implements ApiContext<A>
- Author:
- Adrian Cole
|
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, getUtils, hashCode, toString, utils |
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)
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-2013 The Apache Software Foundation. All Rights Reserved.