public interface RebindSupport<T extends Memento>
entity.getRebindSupport().getMemento()
and persist this using a BrooklynMementoPersister
. Later (e.g. after a brooklyn
restart) a new entity instance may be created and populated by the framework calling
entity.getRebindSupport().reconstruct(rebindContext, memento)
.Modifier and Type | Method and Description |
---|---|
void |
addEnrichers(RebindContext rebindContext,
T Memento) |
void |
addFeeds(RebindContext rebindContext,
T Memento) |
void |
addPolicies(RebindContext rebindContext,
T Memento) |
T |
getMemento()
Creates a memento representing this entity's current state.
|
void |
reconstruct(RebindContext rebindContext,
T memento)
Reconstructs this entity, given a memento of its state.
|
T getMemento()
void reconstruct(RebindContext rebindContext, T memento)
void addPolicies(RebindContext rebindContext, T Memento)
void addEnrichers(RebindContext rebindContext, T Memento)
void addFeeds(RebindContext rebindContext, T Memento)