public abstract class BrooklynDynamicType<T extends BrooklynObject,AbstractT extends AbstractBrooklynObject>
extends java.lang.Object
BrooklynType
, and can change over time;
for this reason it does *not* implement BrooklynType, but
callers can call getSnapshot()
to get a snapshot such instance.Constructor and Description |
---|
BrooklynDynamicType(AbstractT instance) |
BrooklynDynamicType(java.lang.Class<? extends T> clazz) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends T> |
getBrooklynClass() |
ConfigKey<?> |
getConfigKey(java.lang.String keyName)
ConfigKeys available on this entity.
|
java.lang.reflect.Field |
getConfigKeyField(java.lang.String keyName)
field where a config key is defined, for use getting annotations.
|
java.util.Map<java.lang.String,ConfigKey<?>> |
getConfigKeys()
ConfigKeys available on this entity.
|
BrooklynType |
getSnapshot() |
void |
setName(java.lang.String name) |
public BrooklynDynamicType(AbstractT instance)
public BrooklynDynamicType(java.lang.Class<? extends T> clazz)
public void setName(java.lang.String name)
public BrooklynType getSnapshot()
public java.lang.Class<? extends T> getBrooklynClass()
public java.util.Map<java.lang.String,ConfigKey<?>> getConfigKeys()
public ConfigKey<?> getConfigKey(java.lang.String keyName)
public java.lang.reflect.Field getConfigKeyField(java.lang.String keyName)