org.jclouds.rest
Class Providers

java.lang.Object
  extended by org.jclouds.rest.Providers

public class Providers
extends Object

Author:
Adrian Cole

Constructor Summary
Providers()
           
 
Method Summary
static Iterable<String> getSupportedProviders()
          Gets a set of supported providers.
static Iterable<String> getSupportedProvidersOfType(Class<? extends RestContextBuilder> type)
          Gets a set of supported providers.
static Iterable<String> getSupportedProvidersOfTypeInProperties(Class<? extends RestContextBuilder> type, Properties properties)
           
static
<S,A> RestContextBuilder<S,A>
initContextBuilder(Class<RestContextBuilder<S,A>> contextBuilderClass, Class<S> sync, Class<A> async, Properties properties)
           
static
<S,A> Class<RestContextBuilder<S,A>>
resolveContextBuilderClass(String provider, Properties properties)
           
static Class<PropertiesBuilder> resolvePropertiesBuilderClass(String providerName, Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Providers

public Providers()
Method Detail

getSupportedProviders

public static Iterable<String> getSupportedProviders()
Gets a set of supported providers. Idea stolen from pallets (supported-clouds). Uses rest.properties to populate the set.


getSupportedProvidersOfType

public static Iterable<String> getSupportedProvidersOfType(Class<? extends RestContextBuilder> type)
Gets a set of supported providers. Idea stolen from pallets (supported-clouds). Uses rest.properties to populate the set.


getSupportedProvidersOfTypeInProperties

public static Iterable<String> getSupportedProvidersOfTypeInProperties(Class<? extends RestContextBuilder> type,
                                                                       Properties properties)

resolveContextBuilderClass

public static <S,A> Class<RestContextBuilder<S,A>> resolveContextBuilderClass(String provider,
                                                                              Properties properties)
                                                                 throws ClassNotFoundException,
                                                                        IllegalArgumentException,
                                                                        SecurityException,
                                                                        InstantiationException,
                                                                        IllegalAccessException,
                                                                        InvocationTargetException,
                                                                        NoSuchMethodException
Throws:
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException

initContextBuilder

public static <S,A> RestContextBuilder<S,A> initContextBuilder(Class<RestContextBuilder<S,A>> contextBuilderClass,
                                                               @Nullable
                                                               Class<S> sync,
                                                               @Nullable
                                                               Class<A> async,
                                                               Properties properties)
                                                  throws ClassNotFoundException,
                                                         IllegalArgumentException,
                                                         SecurityException,
                                                         InstantiationException,
                                                         IllegalAccessException,
                                                         InvocationTargetException,
                                                         NoSuchMethodException
Throws:
ClassNotFoundException
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException

resolvePropertiesBuilderClass

public static Class<PropertiesBuilder> resolvePropertiesBuilderClass(String providerName,
                                                                     Properties props)
                                                              throws ClassNotFoundException,
                                                                     InstantiationException,
                                                                     IllegalAccessException,
                                                                     InvocationTargetException,
                                                                     NoSuchMethodException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException


Copyright © 2009-2012 jclouds. All Rights Reserved.