public class CatalogLocationResolver extends java.lang.Object implements LocationResolver
brooklyn.catalog:<symbolicName>:<version>,
looks up the catalog to get its definition and creates such a location.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
CatalogLocationResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(java.lang.String spec,
LocationRegistry registry)
accepts anything that looks like it will be a YAML catalog item (e.g.
|
static java.lang.String |
createLegacyWrappedReference(java.lang.String id) |
java.lang.String |
getPrefix()
the prefix that this resolver will attend to
|
void |
init(ManagementContext managementContext) |
boolean |
isEnabled()
whether the location is enabled
|
static boolean |
isLegacyWrappedReference(java.lang.String spec) |
LocationSpec<? extends Location> |
newLocationSpecFromString(java.lang.String spec,
java.util.Map<?,?> locationFlags,
LocationRegistry registry)
Creates a LocationSpec given a spec string, flags (e.g.
|
static java.lang.String |
unwrapLegacyWrappedReference(java.lang.String id) |
public static final java.lang.String NAME
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 LocationResolverpublic static boolean isLegacyWrappedReference(java.lang.String spec)
public static java.lang.String createLegacyWrappedReference(java.lang.String id)
public static java.lang.String unwrapLegacyWrappedReference(java.lang.String id)