case classCompositePickler[A <: AnyRef](picklers: Map[String, Pickler[_]] = Map.empty) extends Pickler[A] with Product with Serializable
A CompositePickler[A] is used to pickle closed class hierarchies under a supertype A,
where the subclasses' precise static types are lost.
Picklers for each concrete subclass B must be registered with the composite using the concreteType[B] method.
CompositePicklers use a more complex serialization format than regular picklers, storing the subclass name
under key CompositePickler.ClassKey and the pickle body under CompositePickler.ValueKey.
Linear Supertypes
Serializable, Serializable, Product, Equals, Pickler[A], AnyRef, Any
A
CompositePickler[A]
is used to pickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.Picklers for each concrete subclass
B
must be registered with the composite using theconcreteType[B]
method.CompositePicklers use a more complex serialization format than regular picklers, storing the subclass name under key
CompositePickler.ClassKey
and the pickle body underCompositePickler.ValueKey
.