public interface BrooklynObject extends Identifiable, Configurable
Modifier and Type | Interface and Description |
---|---|
static interface |
BrooklynObject.TagSupport |
Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogItemId()
The catalog item ID this object was loaded from.
|
java.lang.String |
getDisplayName()
A display name; recommended to be a concise single-line description.
|
BrooklynObject.TagSupport |
getTagSupport()
Deprecated.
since 0.7.0-M2; use
tags() |
BrooklynObject.TagSupport |
tags()
Tags are arbitrary objects which can be attached to an entity for subsequent reference.
|
getId
config, setConfig
java.lang.String getDisplayName()
java.lang.String getCatalogItemId()
This can be used to understand the appropriate classloading context, such as for versioning purposes, as well as meta-information such as branding (maybe you can even get an icon) and potentially things like resource lifecycle (if a software version is being sunsetted).
In some cases this may be set heuristically from context and so may not be accurate. Callers can set an explicit catalog item ID if inferencing is not correct.
BrooklynObject.TagSupport tags()
ImmutableMap
may be used under the covers; also there is little point!);
and they should be amenable to our persistence (on-disk serialization) and our JSON serialization in the REST API.@Deprecated BrooklynObject.TagSupport getTagSupport()
tags()