public class ConfigurableSerializationProfile extends Object implements SerializationProfile
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurableSerializationProfile.Builder |
Constructor and Description |
---|
ConfigurableSerializationProfile() |
ConfigurableSerializationProfile(SerializationProfile base) |
public ConfigurableSerializationProfile()
public ConfigurableSerializationProfile(SerializationProfile base)
public static ConfigurableSerializationProfile.Builder builder()
public static ConfigurableSerializationProfile.Builder builder(SerializationProfile base)
public List<Classes> getClasses()
getClasses
in interface SerializationProfile
public List<Fields> getFieldExclusions()
SerializationProfile
SerializationProfile.getFieldExclusions()
enables excluding specified fields from serialization. Exclude fields
from serializationif they are irrelevant or not easily serialized.
Fields
provides some default predicates to put into this list.getFieldExclusions
in interface SerializationProfile
public List<Fields> getFieldFacades()
SerializationProfile
SerializationProfile.getFieldFacades()
enables facading specified fields at serialization. Facading means that a stub of
the instance is recorded, but the internal state is skipped. Facade fields if their internal state is not relevant
(yet their behavior may be).
Fields
provides some default predicates to put into this list.getFieldFacades
in interface SerializationProfile
public List<Classes> getClassExclusions()
SerializationProfile
SerializationProfile.getClassExclusions()
enables excluding specified classes from serialization. Exclude classes
from serialization if they are irrelevant or not easily serialized.
Classes
provides some default predicates to put into this list.getClassExclusions
in interface SerializationProfile
public List<Classes> getClassFacades()
SerializationProfile
SerializationProfile.getClassFacades()
enables facading specified classes at serialization. Facading means that a stub of
the instance is recorded, but the internal state is skipped. Facade classes if their internal state is not relevant
(yet their behavior may be).
Classes
provides some default predicates to put into this list.getClassFacades
in interface SerializationProfile
public List<Fields> getGlobalFields()
SerializationProfile
SerializationProfile.getGlobalFields()
enables to extend serialization by global/static fields. Global/Static
fields are not tracked by default and must be added to the configuration if needed.
Fields
provides some default predicates to specify global variables/static fields.getGlobalFields
in interface SerializationProfile
Global
public List<Methods> getInputs()
SerializationProfile
SerializationProfile.getInputs()
enables to extend serialization by input methods.
We define input as state that is dependent on sources not controlled by the JVM (e.g. filesystem, webservices,
random numbers, date/time). Methods that provide such input as arguments or results can be specified as input methods
by adding a specification to this list.
Methods
provides some default predicates to specify methods that provide input.getInputs
in interface SerializationProfile
Input
public List<Methods> getOutputs()
SerializationProfile
SerializationProfile.getOutputs()
enables to extend serialization by output methods.
We define output as state that is consumed by systems not controlled by the JVM (e.g. filesystem, webservices, browser).
Methods that consume such output as arguments can be specified as output methods by adding a specification to this list.
Methods
provides some default predicates to specify methods that provide input.getOutputs
in interface SerializationProfile
Output
public List<Methods> getRecorded()
SerializationProfile
SerializationProfile.getRecorded()
enables to extend serialization by recorded methods.
Methods
provides some default predicates to specify methods that provide input.getRecorded
in interface SerializationProfile
Recorded
Copyright © 2020. All rights reserved.