public interface Memento
extends java.io.Serializable
RebindSupport
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBrooklynVersion()
The version of brooklyn used when this memento was generated.
|
java.lang.String |
getCatalogItemId() |
java.lang.Object |
getCustomField(java.lang.String name)
Deprecated.
since 0.7.0; use config/attributes so generic persistence will work, rather than requiring "custom fields"
|
java.util.Map<java.lang.String,? extends java.lang.Object> |
getCustomFields()
Deprecated.
since 0.7.0; use config/attributes so generic persistence will work, rather than requiring "custom fields"
|
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
java.util.Collection<java.lang.Object> |
getTags() |
java.lang.String |
getType() |
java.lang.Class<?> |
getTypeClass()
Returns the injected type class, or null if not injected.
|
java.lang.String |
getUniqueTag()
Null for
Entity , but important for adjuncts; see EntityAdjunct.getUniqueTag() |
void |
injectTypeClass(java.lang.Class<?> clazz) |
java.lang.String |
toVerboseString() |
java.lang.String getBrooklynVersion()
java.lang.String getId()
java.lang.String getType()
java.lang.String getCatalogItemId()
java.lang.String getDisplayName()
@Deprecated java.lang.Object getCustomField(java.lang.String name)
@Deprecated java.util.Map<java.lang.String,? extends java.lang.Object> getCustomFields()
java.lang.String toVerboseString()
void injectTypeClass(java.lang.Class<?> clazz)
java.lang.Class<?> getTypeClass()
This is useful for ensuring the correct classloader is used (e.g. for EntityMemento
previously calling EntityTypes.getDefinedSensors(getType())
.
java.util.Collection<java.lang.Object> getTags()
java.lang.String getUniqueTag()
Entity
, but important for adjuncts; see EntityAdjunct.getUniqueTag()