Class ContextFreezeDryer
- java.lang.Object
-
- repast.simphony.freezedry.AbstractFreezeDryer<DefaultContext<?>>
-
- repast.simphony.freezedry.freezedryers.ContextFreezeDryer
-
- All Implemented Interfaces:
FreezeDryer<DefaultContext<?>>
public class ContextFreezeDryer extends AbstractFreezeDryer<DefaultContext<?>>
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_ID_KEY
static String
CONTEXT_TYPE_ID_KEY
static String
NORMAL_PROJECTIONS_KEY
static String
PROJECTION_TYPE_KEY
static String
PROPERTY_PROJECTIONS_KEY
static String
VALUE_LAYERS_KEY
-
Fields inherited from class repast.simphony.freezedry.AbstractFreezeDryer
registry
-
Fields inherited from interface repast.simphony.freezedry.FreezeDryer
CLASS_MARKER, ID_MARKER
-
-
Constructor Summary
Constructors Constructor Description ContextFreezeDryer(FreezeDryedRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreezeDryedObject
freezeDry(String id, DefaultContext<?> context)
protected Iterable
getIterable(FreezeDryedObject fdo, String key)
protected Projection
getProjection(Object obj, String key)
boolean
handles(Class<?> clazz)
protected DefaultContext
instantiate(FreezeDryedObject fdo)
protected void
loadChildren(FreezeDryedObject fdo, DefaultContext context)
protected void
loadNormalProjections(FreezeDryedObject fdo, Context context)
protected void
loadProjections(FreezeDryedObject fdo, Context context)
protected void
loadPropertyProjections(FreezeDryedObject fdo, Context context)
DefaultContext
rehydrate(FreezeDryedObject fdo)
protected void
storeChildren(FreezeDryedObject fdo, Context context)
protected void
storeMetaData(FreezeDryedObject fdo, DefaultContext<?> context)
protected void
storeProjections(FreezeDryedObject fdo, Context<?> context)
-
Methods inherited from class repast.simphony.freezedry.AbstractFreezeDryer
getChild, getString, getVal, getVal
-
-
-
-
Field Detail
-
VALUE_LAYERS_KEY
public static final String VALUE_LAYERS_KEY
- See Also:
- Constant Field Values
-
CONTEXT_TYPE_ID_KEY
public static final String CONTEXT_TYPE_ID_KEY
- See Also:
- Constant Field Values
-
CONTEXT_ID_KEY
public static final String CONTEXT_ID_KEY
- See Also:
- Constant Field Values
-
PROPERTY_PROJECTIONS_KEY
public static final String PROPERTY_PROJECTIONS_KEY
- See Also:
- Constant Field Values
-
NORMAL_PROJECTIONS_KEY
public static final String NORMAL_PROJECTIONS_KEY
- See Also:
- Constant Field Values
-
PROJECTION_TYPE_KEY
public static final String PROJECTION_TYPE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextFreezeDryer
public ContextFreezeDryer(FreezeDryedRegistry registry)
-
-
Method Detail
-
freezeDry
public FreezeDryedObject freezeDry(String id, DefaultContext<?> context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
storeMetaData
protected void storeMetaData(FreezeDryedObject fdo, DefaultContext<?> context)
-
storeChildren
protected void storeChildren(FreezeDryedObject fdo, Context context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
storeProjections
protected void storeProjections(FreezeDryedObject fdo, Context<?> context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
rehydrate
public DefaultContext rehydrate(FreezeDryedObject fdo) throws FreezeDryingException
- Throws:
FreezeDryingException
-
getIterable
protected Iterable getIterable(FreezeDryedObject fdo, String key) throws FreezeDryingException
- Throws:
FreezeDryingException
-
getProjection
protected Projection getProjection(Object obj, String key) throws FreezeDryingException
- Throws:
FreezeDryingException
-
instantiate
protected DefaultContext instantiate(FreezeDryedObject fdo) throws FreezeDryingException
- Throws:
FreezeDryingException
-
loadChildren
protected void loadChildren(FreezeDryedObject fdo, DefaultContext context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
loadPropertyProjections
protected void loadPropertyProjections(FreezeDryedObject fdo, Context context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
loadNormalProjections
protected void loadNormalProjections(FreezeDryedObject fdo, Context context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
loadProjections
protected void loadProjections(FreezeDryedObject fdo, Context context) throws FreezeDryingException
- Throws:
FreezeDryingException
-
handles
public boolean handles(Class<?> clazz)
-
-