public class NamedLocationResolver extends java.lang.Object implements LocationResolver
or
brooklyn.location.named.bob-aws-east=jclouds:aws-ec2:us-east-1 brooklyn.location.named.bob-aws-east.identity=BobId brooklyn.location.named.bob-aws-east.credential=BobCred
then you can simply refer to: foo or named:foo (or bob-aws-east or named:bob-aws-east) in any location spec
| Modifier and Type | Field and Description | 
|---|---|
| static org.slf4j.Logger | log | 
| static java.lang.String | NAMED | 
| Constructor and Description | 
|---|
| NamedLocationResolver() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | accepts(java.lang.String spec,
       LocationRegistry registry)accepts anything starting named:, such as named:my-loc, or just my-loc, so long as my-loc is a defined location name | 
| java.lang.String | getPrefix()the prefix that this resolver will attend to | 
| void | init(ManagementContext managementContext) | 
| boolean | isEnabled()whether the location is enabled | 
| LocationSpec<? extends Location> | newLocationSpecFromString(java.lang.String spec,
                         java.util.Map<?,?> locationFlags,
                         LocationRegistry registry)Creates a LocationSpec given a spec string, flags (e.g. | 
public static final org.slf4j.Logger log
public static final java.lang.String NAMED
public void init(ManagementContext managementContext)
init in interface LocationResolverpublic boolean isEnabled()
LocationResolverisEnabled in interface LocationResolverpublic LocationSpec<? extends Location> newLocationSpecFromString(java.lang.String spec, java.util.Map<?,?> locationFlags, LocationRegistry registry)
LocationResolvernewLocationSpecFromString in interface LocationResolverpublic java.lang.String getPrefix()
LocationResolvergetPrefix in interface LocationResolverpublic boolean accepts(java.lang.String spec,
              LocationRegistry registry)
accepts in interface LocationResolver