public class MementosGenerators
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<Enricher,EnricherMemento> |
enricherMementoFunction() |
static com.google.common.base.Function<Entity,EntityMemento> |
entityMementoFunction()
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static com.google.common.base.Function<Feed,FeedMemento> |
feedMementoFunction() |
static com.google.common.base.Function<Location,LocationMemento> |
locationMementoFunction()
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static Memento |
newBasicMemento(BrooklynObject instance)
Inspects a brooklyn object to create a basic corresponding memento.
|
static BrooklynMemento |
newBrooklynMemento(ManagementContext managementContext)
Deprecated.
since 0.7.0; will be moved to test code; generate each entity/location memento separately
|
static CatalogItemMemento |
newCatalogItemMemento(CatalogItem<?,?> catalogItem)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static EnricherMemento |
newEnricherMemento(Enricher enricher)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static EntityMemento |
newEntityMemento(Entity entity)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static BasicEntityMemento.Builder |
newEntityMementoBuilder(Entity entityRaw)
Deprecated.
since 0.7.0; use
newBasicMemento(BrooklynObject) instead |
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 Memento |
newMemento(BrooklynObject instance)
Deprecated.
since 0.7.0 use
newBasicMemento(BrooklynObject) |
static PolicyMemento |
newPolicyMemento(Policy policy)
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
static com.google.common.base.Function<Policy,PolicyMemento> |
policyMementoFunction()
Deprecated.
since 0.7.0, see
newBasicMemento(BrooklynObject) |
public static Memento newMemento(BrooklynObject instance)
newBasicMemento(BrooklynObject)
@Beta 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 BrooklynMemento newBrooklynMemento(ManagementContext managementContext)
@Deprecated public static EntityMemento newEntityMemento(Entity entity)
newBasicMemento(BrooklynObject)
@Deprecated public static BasicEntityMemento.Builder newEntityMementoBuilder(Entity entityRaw)
newBasicMemento(BrooklynObject)
instead@Deprecated public static com.google.common.base.Function<Entity,EntityMemento> entityMementoFunction()
newBasicMemento(BrooklynObject)
@Deprecated public static LocationMemento newLocationMemento(Location location)
newBasicMemento(BrooklynObject)
@Deprecated public static BasicLocationMemento.Builder newLocationMementoBuilder(Location location)
newBasicMemento(BrooklynObject)
instead@Deprecated public static com.google.common.base.Function<Location,LocationMemento> locationMementoFunction()
newBasicMemento(BrooklynObject)
@Deprecated public static PolicyMemento newPolicyMemento(Policy policy)
newBasicMemento(BrooklynObject)
@Deprecated public static com.google.common.base.Function<Policy,PolicyMemento> policyMementoFunction()
newBasicMemento(BrooklynObject)
@Deprecated public static EnricherMemento newEnricherMemento(Enricher enricher)
newBasicMemento(BrooklynObject)
@Deprecated public static FeedMemento newFeedMemento(Feed feed)
newBasicMemento(BrooklynObject)
@Deprecated public static CatalogItemMemento newCatalogItemMemento(CatalogItem<?,?> catalogItem)
newBasicMemento(BrooklynObject)
public static com.google.common.base.Function<Enricher,EnricherMemento> enricherMementoFunction()
public static com.google.common.base.Function<Feed,FeedMemento> feedMementoFunction()