|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RebindSupport<T extends Memento>
Supporter instance for behaviour related to rebinding a given entity/location/policy.
For example, the brooklyn framework may call 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).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
T getMemento()
void reconstruct(RebindContext rebindContext,
T memento)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||