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() |
static com.google.common.base.Function<Feed,FeedMemento> |
feedMementoFunction() |
static com.google.common.base.Function<Location,LocationMemento> |
locationMementoFunction() |
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) |
static EnricherMemento |
newEnricherMemento(Enricher enricher)
Given an enricher, extracts its state for serialization.
|
static EntityMemento |
newEntityMemento(Entity entity)
Inspects an entity to create a corresponding memento.
|
static BasicEntityMemento.Builder |
newEntityMementoBuilder(Entity entityRaw)
Deprecated.
since 0.7.0; use
newMemento(BrooklynObject) instead |
static FeedMemento |
newFeedMemento(Feed feed)
Given a feed, extracts its state for serialization.
|
static LocationMemento |
newLocationMemento(Location location)
Given a location, extracts its state for serialization.
|
static BasicLocationMemento.Builder |
newLocationMementoBuilder(Location location)
Deprecated.
since 0.7.0; use
newMemento(BrooklynObject) instead |
static Memento |
newMemento(BrooklynObject instance)
Inspects a brooklyn object to create a corresponding memento.
|
static PolicyMemento |
newPolicyMemento(Policy policy)
Given a policy, extracts its state for serialization.
|
static com.google.common.base.Function<Policy,PolicyMemento> |
policyMementoFunction() |
public static Memento newMemento(BrooklynObject instance)
@Deprecated public static BrooklynMemento newBrooklynMemento(ManagementContext managementContext)
public static EntityMemento newEntityMemento(Entity entity)
@Deprecated public static BasicEntityMemento.Builder newEntityMementoBuilder(Entity entityRaw)
newMemento(BrooklynObject)
insteadpublic static com.google.common.base.Function<Entity,EntityMemento> entityMementoFunction()
public static LocationMemento newLocationMemento(Location location)
@Deprecated public static BasicLocationMemento.Builder newLocationMementoBuilder(Location location)
newMemento(BrooklynObject)
insteadpublic static com.google.common.base.Function<Location,LocationMemento> locationMementoFunction()
public static PolicyMemento newPolicyMemento(Policy policy)
public static com.google.common.base.Function<Policy,PolicyMemento> policyMementoFunction()
public static EnricherMemento newEnricherMemento(Enricher enricher)
public static FeedMemento newFeedMemento(Feed feed)
public static CatalogItemMemento newCatalogItemMemento(CatalogItem<?,?> catalogItem)
public static com.google.common.base.Function<Enricher,EnricherMemento> enricherMementoFunction()
public static com.google.common.base.Function<Feed,FeedMemento> feedMementoFunction()