public class MementosGenerators
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Memento |
newBasicMemento(BrooklynObject instance)
Inspects a brooklyn object to create a basic corresponding memento.
|
static EnricherMemento |
newEnricherMemento(Enricher enricher)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static FeedMemento |
newFeedMemento(Feed feed)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static LocationMemento |
newLocationMemento(Location location)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static BasicLocationMemento.Builder |
newLocationMementoBuilder(Location location)
Deprecated.
since 0.7.0; use
newBasicMemento(BrooklynObject) instead |
static PolicyMemento |
newPolicyMemento(Policy policy)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
public static Memento newBasicMemento(BrooklynObject instance)
The memento is "basic" in the sense that it does not tie in to any entity-specific customization; the corresponding memento may subsequently be customized by the caller.
This method is intended for use by AbstractBrooklynObjectRebindSupport.getMemento()
and callers wanting a memento for an object should use that, or the
BrooklynPersistenceUtils.newObjectMemento(BrooklynObject)
convenience.
@Deprecated public static LocationMemento newLocationMemento(Location location)
newBasicMemento(BrooklynObject)
@Deprecated public static BasicLocationMemento.Builder newLocationMementoBuilder(Location location)
newBasicMemento(BrooklynObject)
instead@Deprecated public static PolicyMemento newPolicyMemento(Policy policy)
newBasicMemento(BrooklynObject)
@Deprecated public static EnricherMemento newEnricherMemento(Enricher enricher)
newBasicMemento(BrooklynObject)
@Deprecated public static FeedMemento newFeedMemento(Feed feed)
newBasicMemento(BrooklynObject)