|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmapps.modules.cloudprovider.CloudProviderFactory
public class CloudProviderFactory
Factory for creating CloudProvider instances.
The CloudProviderFactory is configured using a property file named cloudprovider.properties.
This file is retrieved using the resourcebundle mechanism
TODO:add option to start MMBase
| Field Summary | |
|---|---|
static java.lang.String |
CLOUD_PROVIDER_CLASS_PROPERTY_NAME
The name of the property in the CLOUD_PROVIDER_FACTORY_CONFIGURATION_RESOURCE_NAME the denotes the CloudProvider to use. |
static java.lang.String |
CLOUD_PROVIDER_FACTORY_CONFIGURATION_RESOURCE_NAME
The name of the bundle used to configure the cloudproviderfactory |
static java.lang.String |
DEFAULT_CLOUD_PROVIDER_CLASS
The default cloud provider class used when no property file named CLOUD_PROVIDER_CLASS_PROPERTY_NAME is found. |
| Method Summary | |
|---|---|
static CloudProvider |
getCloudProvider()
static method that is to return a working CloudProvider |
static CloudProvider |
getCloudProvider(java.lang.String name)
static method which returns a working CloudProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLOUD_PROVIDER_CLASS_PROPERTY_NAME
CLOUD_PROVIDER_FACTORY_CONFIGURATION_RESOURCE_NAME the denotes the CloudProvider to use.
public static final java.lang.String CLOUD_PROVIDER_FACTORY_CONFIGURATION_RESOURCE_NAME
public static final java.lang.String DEFAULT_CLOUD_PROVIDER_CLASS
CLOUD_PROVIDER_CLASS_PROPERTY_NAME is found.
| Method Detail |
|---|
public static CloudProvider getCloudProvider()
CloudProvider
java.lang.RuntimeException - if the CloudProviderFactory fails to create a new CloudProviderpublic static CloudProvider getCloudProvider(java.lang.String name)
CloudProvider
name - name of CloudProvider
java.lang.RuntimeException - when the CloudProviderFactory fails to create CloudProviders
java.lang.IllegalArgumentException - when CloudProvider with the name is not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||