org.jclouds.blobstore
Class BlobStoreContextFactory

java.lang.Object
  extended by org.jclouds.blobstore.BlobStoreContextFactory

public class BlobStoreContextFactory
extends Object

Helper class to instantiate BlobStoreContext instances.

Author:
Adrian Cole

Constructor Summary
BlobStoreContextFactory()
          Initializes with the default properties built-in to jclouds.
BlobStoreContextFactory(Properties properties)
          Finds definitions in the specified properties.
BlobStoreContextFactory(RestContextFactory restContextFactory)
          Uses the supplied RestContextFactory to create BlobStoreContexts
 
Method Summary
static
<S,A> BlobStoreContext
buildContextUnwrappingExceptions(BlobStoreContextBuilder<S,A> builder)
           
<S,A> BlobStoreContext
createContext(RestContextSpec<S,A> contextSpec)
           
<S,A> BlobStoreContext
createContext(RestContextSpec<S,A> contextSpec, Properties overrides)
           
 BlobStoreContext createContext(String provider, Iterable<? extends com.google.inject.Module> modules, Properties overrides)
           
 BlobStoreContext createContext(String provider, Properties overrides)
           
 BlobStoreContext createContext(String provider, String identity, String credential)
           
 BlobStoreContext createContext(String provider, String identity, String credential, Iterable<? extends com.google.inject.Module> modules)
           
 BlobStoreContext createContext(String provider, String identity, String credential, Iterable<? extends com.google.inject.Module> modules, Properties overrides)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobStoreContextFactory

public BlobStoreContextFactory()
Initializes with the default properties built-in to jclouds. This is typically stored in the classpath resource rest.properties

See Also:
RestContextFactory.getPropertiesFromResource(java.lang.String)

BlobStoreContextFactory

public BlobStoreContextFactory(Properties properties)
Finds definitions in the specified properties.


BlobStoreContextFactory

public BlobStoreContextFactory(RestContextFactory restContextFactory)
Uses the supplied RestContextFactory to create BlobStoreContexts

Method Detail

buildContextUnwrappingExceptions

public static <S,A> BlobStoreContext buildContextUnwrappingExceptions(BlobStoreContextBuilder<S,A> builder)

createContext

public BlobStoreContext createContext(String provider,
                                      String identity,
                                      String credential)
See Also:
RestContextFactory.createContextBuilder(String, String, String)

createContext

public BlobStoreContext createContext(String provider,
                                      Properties overrides)
See Also:
RestContextFactory.createContextBuilder(String, Properties)

createContext

public BlobStoreContext createContext(String provider,
                                      Iterable<? extends com.google.inject.Module> modules,
                                      Properties overrides)
See Also:
RestContextFactory.createContextBuilder(String, Iterable)

createContext

public BlobStoreContext createContext(String provider,
                                      @Nullable
                                      String identity,
                                      @Nullable
                                      String credential,
                                      Iterable<? extends com.google.inject.Module> modules)
See Also:
RestContextFactory.createContextBuilder(String, String,String, Iterable)

createContext

public BlobStoreContext createContext(String provider,
                                      @Nullable
                                      String identity,
                                      @Nullable
                                      String credential,
                                      Iterable<? extends com.google.inject.Module> modules,
                                      Properties overrides)
See Also:
RestContextFactory.createContextBuilder(String, String,String, Iterable, Properties)

createContext

public <S,A> BlobStoreContext createContext(RestContextSpec<S,A> contextSpec)
See Also:
RestContextFactory.createContextBuilder(RestContextSpec)

createContext

public <S,A> BlobStoreContext createContext(RestContextSpec<S,A> contextSpec,
                                            Properties overrides)
See Also:
RestContextFactory.createContextBuilder(RestContextSpec, Properties)


Copyright © 2009-2011 jclouds. All Rights Reserved.