public abstract class AbstractMemento extends java.lang.Object implements Memento, java.io.Serializable
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.
|
abstract java.util.Map<java.lang.String,? extends java.lang.Object> |
getCustomFields()
Deprecated.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
java.util.List<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 |
toString() |
java.lang.String |
toVerboseString() |
public void injectTypeClass(java.lang.Class<?> clazz)
injectTypeClass
in interface Memento
public java.lang.Class<?> getTypeClass()
Memento
This is useful for ensuring the correct classloader is used (e.g. for EntityMemento
previously calling EntityTypes.getDefinedSensors(getType())
.
getTypeClass
in interface Memento
public java.lang.String getBrooklynVersion()
Memento
getBrooklynVersion
in interface Memento
public java.lang.String getDisplayName()
getDisplayName
in interface Memento
public java.lang.String getCatalogItemId()
getCatalogItemId
in interface Memento
public java.util.List<java.lang.Object> getTags()
public java.lang.String getUniqueTag()
Memento
Entity
, but important for adjuncts; see EntityAdjunct.getUniqueTag()
getUniqueTag
in interface Memento
@Deprecated public java.lang.Object getCustomField(java.lang.String name)
Memento
getCustomField
in interface Memento
@Deprecated public abstract java.util.Map<java.lang.String,? extends java.lang.Object> getCustomFields()
getCustomFields
in interface Memento
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toVerboseString()
toVerboseString
in interface Memento