public class JcloudsLocationResolver extends java.lang.Object implements LocationResolver
LocationResolver.EnableableLocationResolver
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,org.jclouds.apis.ApiMetadata> |
APIS |
static java.util.Collection<java.lang.String> |
AWS_REGIONS |
static org.slf4j.Logger |
log |
static java.util.Map<java.lang.String,org.jclouds.providers.ProviderMetadata> |
PROVIDERS |
Constructor and Description |
---|
JcloudsLocationResolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String spec,
LocationRegistry registry)
whether the spec is something which should be passed to this resolver
|
java.lang.String |
getPrefix()
the prefix that this resolver will attend to
|
void |
init(ManagementContext managementContext) |
JcloudsLocation |
newLocationFromString(java.util.Map locationFlags,
java.lang.String spec,
LocationRegistry registry)
Similar to
#newLocationFromString(Map, String)
but passing in a reference to the registry itself (from which the base properties are discovered)
and including flags (e.g. |
public static final org.slf4j.Logger log
public static final java.util.Map<java.lang.String,org.jclouds.providers.ProviderMetadata> PROVIDERS
public static final java.util.Map<java.lang.String,org.jclouds.apis.ApiMetadata> APIS
public static final java.util.Collection<java.lang.String> AWS_REGIONS
public void init(ManagementContext managementContext)
init
in interface LocationResolver
public JcloudsLocation newLocationFromString(java.util.Map locationFlags, java.lang.String spec, LocationRegistry registry)
LocationResolver
#newLocationFromString(Map, String)
but passing in a reference to the registry itself (from which the base properties are discovered)
and including flags (e.g. user, key, cloud credential) which are known to be for this location.
introduced to support locations which refer to other locations, e.g. NamedLocationResolver
newLocationFromString
in interface LocationResolver
public java.lang.String getPrefix()
LocationResolver
getPrefix
in interface LocationResolver
public boolean accepts(java.lang.String spec, LocationRegistry registry)
LocationResolver
accepts
in interface LocationResolver