public class DefaultSerializationProfile extends Object implements SerializationProfile
| Modifier and Type | Field and Description |
|---|---|
static List<Classes> |
DEFAULT_CLASS_EXCLUSIONS |
static List<Classes> |
DEFAULT_CLASS_FACADES |
static List<Fields> |
DEFAULT_FIELD_EXCLUDES |
static List<Fields> |
DEFAULT_FIELD_FACADES |
static List<Fields> |
DEFAULT_GLOBAL_FIELDS |
static List<Methods> |
INPUT |
static List<Methods> |
OUTPUT |
static List<Methods> |
RECORDED |
| Constructor and Description |
|---|
DefaultSerializationProfile() |
| Modifier and Type | Method and Description |
|---|---|
List<Classes> |
getClasses() |
List<Classes> |
getClassExclusions()
Configuring
SerializationProfile.getClassExclusions() enables excluding specified classes from serialization. |
List<Classes> |
getClassFacades()
Configuring
SerializationProfile.getClassFacades() enables facading specified classes at serialization. |
List<Fields> |
getFieldExclusions()
Configuring
SerializationProfile.getFieldExclusions() enables excluding specified fields from serialization. |
List<Fields> |
getFieldFacades()
Configuring
SerializationProfile.getFieldFacades() enables facading specified fields at serialization. |
List<Fields> |
getGlobalFields()
Configuring
SerializationProfile.getGlobalFields() enables to extend serialization by global/static fields. |
List<Methods> |
getInputs()
Configuring
SerializationProfile.getInputs() enables to extend serialization by input methods. |
List<Methods> |
getOutputs()
Configuring
SerializationProfile.getOutputs() enables to extend serialization by output methods. |
List<Methods> |
getRecorded()
Configuring
SerializationProfile.getRecorded() enables to extend serialization by recorded methods. |
public List<Fields> getFieldExclusions()
SerializationProfileSerializationProfile.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 SerializationProfilepublic List<Fields> getFieldFacades()
SerializationProfileSerializationProfile.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 SerializationProfilepublic List<Classes> getClassExclusions()
SerializationProfileSerializationProfile.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 SerializationProfilepublic List<Classes> getClassFacades()
SerializationProfileSerializationProfile.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 SerializationProfilepublic List<Fields> getGlobalFields()
SerializationProfileSerializationProfile.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 SerializationProfileGlobalpublic List<Methods> getInputs()
SerializationProfileSerializationProfile.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 SerializationProfileInputpublic List<Methods> getOutputs()
SerializationProfileSerializationProfile.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 SerializationProfileOutputpublic List<Methods> getRecorded()
SerializationProfileSerializationProfile.getRecorded() enables to extend serialization by recorded methods.
Methods provides some default predicates to specify methods that provide input.getRecorded in interface SerializationProfileRecordedpublic List<Classes> getClasses()
getClasses in interface SerializationProfileCopyright © 2020. All rights reserved.