Serialization Context
Parameters to serialization and deserialization.
Types
Properties
If true, deserialization calls using this context will not fallback to using the Class Carpenter to attempt to construct classes present in the schema but not on the current classpath.
Additional custom serializers that will be made available during (de)serialization.
The class loader to use for deserialization.
If non-null, apply this encoding (typically compression) when serializing.
A whitelist that determines (mostly for security purposes) whether a particular encoding may be used when deserializing.
If true the carpenter will happily synthesis classes that implement interfaces containing methods that are not getters for any AMQP fields. Invoking these methods will throw an AbstractMethodError. If false then an exception will be thrown during deserialization instead.
Duplicate references to the same object preserved in the wire format and when deserialized when this is true, otherwise they appear as new copies of the object.
When serializing, use the format this header sequence represents.
If true the serialization evolver will fail if the binary to be deserialized contains more fields then the current object from the classpath.
A map of any additional properties specific to the particular use case.
The use case we are serializing or deserializing for. See UseCase.
A whitelist that contains (mostly for security purposes) which classes can be serialized and deserialized.
Functions
Does not do anything.
Helper method to return a new context based on this context with the deserialization class loader changed.
Helper method to return a new context based on this context with the given serializers added.
A shallow copy of this context but with the given (possibly null) encoding.
A shallow copy of this context but with the given encoding whitelist.
Return a new context based on this one but with a lenient carpenter.
Returns a copy of the current context with carpentry of unknown classes disabled. On encountering such a class during deserialization the Serialization framework will throw a NotSerializableException.
Helper method to return a new context based on this context with object references disabled.
Helper method to return a new context based on this context but with serialization using the format this header sequence represents.
Return a new context based on this one but with a strict evolution.
Helper method to return a new context based on this context with the extra properties added.
Helper method to return a new context based on this context with the property added.
Helper method to return a new context based on this context with the given list of classes specifically whitelisted.
Helper method to return a new context based on this context with the given class specifically whitelisted.