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 SerializationProfilepublic 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 SerializationProfileRecordedCopyright © 2020. All rights reserved.