@ file : Suppress (" platform _ class _ mapped _ to _ kotlin ") Ċ package Ġnet . cord a . serialization . dj vm Ċ Ċ import Ġnet . cord a . core . serialization . Serialization Context Ċ import Ġnet . cord a . serialization . internal . amqp . AM QP Remote Type Model Ċ import Ġnet . cord a . serialization . internal . amqp . AM QP Serializer Ċ import Ġnet . cord a . serialization . internal . amqp . Caching Custom Serializer Registry Ċ import Ġnet . cord a . serialization . internal . amqp . Comp osed Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Default Descriptor Based Serializer Registry Ċ import Ġnet . cord a . serialization . internal . amqp . Default E volution Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Default Local Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Default Remote Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Serializer Factory Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Whitelist Based Type Model Configuration Ċ import Ġnet . cord a . serialization . internal . amqp . createClass C arp enter Ċ import Ġnet . cord a . serialization . internal . model . Base Local Types Ċ import Ġnet . cord a . serialization . internal . model . Class C arp ent ing Type Loader Ċ import Ġnet . cord a . serialization . internal . model . Configurable Local Type Model Ċ import Ġnet . cord a . serialization . internal . model . Schema Building Remote Type C arp enter Ċ import Ġnet . cord a . serialization . internal . amqp . Serializer Factory Builder Ċ import Ġnet . cord a . serialization . internal . model . Type Loader Ċ import Ġnet . cord a . serialization . internal . model . Type Mode lling F inger Printer Ċ import Ġjava . lang . Boolean Ċ import Ġjava . lang . Byte Ċ import Ġjava . lang . Double Ċ import Ġjava . lang . Float Ċ import Ġjava . lang . Long Ċ import Ġjava . lang . Short Ċ import Ġjava . util . Collections . singleton Ċ import Ġjava . util . Collections . unmodifiable Map Ċ import Ġjava . util . Date Ċ import Ġjava . util . UUID Ċ import Ġjava . util . function . Function Ċ import Ġjava . util . function . Predicate Ċ Ċ /** Ċ Ġ* ĠThis Ġhas Ġall Ġbeen Ġlo ving ly Ġcopied Ġfrom Ġ[ Serializer Factory Builder ]. Ċ Ġ*/ Ċ class ĠSandbox Serializer Factory Factory ( ĊĠĠĠ Ġprivate Ġval Ġprimitive Serializer Factory : ĠFunction < Class <* >, ĠAMQP Serializer < Any >>, ĊĠĠĠ Ġprivate Ġval Ġlocal Types : ĠBase Local Types Ċ ) Ġ: ĠSerializer Factory Factory Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġmake ( context : ĠSerialization Context ): ĠSerializer Factory Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġclass Loader Ġ= Ġcontext . de serialization ClassLoader ĊĊĠĠĠĠĠĠĠ Ġval Ġprimitive Types Ġ= Ġun modifiable Map ( map Of < Class <* >, ĠClass < *> >( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Boolean ") Ġto ĠBoolean . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Byte ") Ġto ĠByte . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Character ") Ġto ĠCharacter . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Double ") Ġto ĠDouble . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Float ") Ġto ĠFloat . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Integer ") Ġto ĠInteger . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Long ") Ġto ĠLong . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . Short ") Ġto ĠShort . TYPE , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . lang . String ") Ġto ĠString :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . util . Date ") Ġto ĠDate :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . load Class (" sandbox . java . util . UUID ") Ġto ĠUUID :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠVoid :: class . java Ġto ĠVoid . TYPE ĊĠĠĠĠĠĠĠ Ġ)) ĊĊĠĠĠĠĠĠĠ Ġval Ġclass C arp enter Ġ= Ġcreate Class C arp enter ( context ) ĊĠĠĠĠĠĠĠ Ġval Ġdescriptor Based Serializer Registry Ġ= ĠDefault Descriptor Based Serializer Registry () ĊĠĠĠĠĠĠĠ Ġval Ġcustom Serializer Registry Ġ= ĠC aching Custom Serializer Registry ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdescriptor Based Serializer Registry Ġ= Ġdescriptor Based Serializer Registry , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġallowed For Ġ= Ġsingleton ( class Loader . load Class (" sandbox . java . lang . Object ")) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġlocal Type Model Ġ= ĠConfigur able Local Type Model ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠWh itelist Based Type Model Configuration ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġwhitelist Ġ= Ġcontext . whitelist , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcustom Serializer Registry Ġ= Ġcustom Serializer Registry , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbase Types Ġ= Ġlocal Types ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġfinger Printer Ġ= ĠType Mode lling F inger Printer ( custom Serializer Registry ) ĊĊĠĠĠĠĠĠĠ Ġval Ġlocal Serializer Factory Ġ= ĠDefault Local Serializer Factory ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwhitelist Ġ= Ġcontext . whitelist , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtype Model Ġ= Ġlocal Type Model , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfinger Printer Ġ= Ġfinger Printer , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass loader Ġ= Ġclass Loader , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdescriptor Based Serializer Registry Ġ= Ġdescriptor Based Serializer Registry , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġprimitive Serializer Factory Ġ= Ġprimitive Serializer Factory , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis Primitive Type Ġ= ĠPredicate Ġ{ Ġclazz Ġ-> Ġclazz . is Primitive Ġ|| Ġclazz Ġin Ġprimitive Types . keys Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcustom Serializer Registry Ġ= Ġcustom Serializer Registry , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġonly Custom Serial izers Ġ= Ġfalse ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġtype Loader : ĠType Loader Ġ= ĠClass C arp ent ing Type Loader ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġc arp enter Ġ= ĠSchema Building Remote Type C arp enter ( class C arp enter ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader Ġ= Ġclass Loader ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġevolution Serializer Factory Ġ= ĠDefault E volution Serializer Factory ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlocal Serializer Factory Ġ= Ġlocal Serializer Factory , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader Ġ= Ġclass Loader , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmust Preserve Data When E vol ving Ġ= Ġcontext . prevent Data Loss , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġprimitive Types Ġ= Ġprimitive Types ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġremote Serializer Factory Ġ= ĠDefault Remote Serializer Factory ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġevolution Serializer Factory Ġ= Ġevolution Serializer Factory , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdescriptor Based Serializer Registry Ġ= Ġdescriptor Based Serializer Registry , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġremote Type Model Ġ= ĠAMQP Remote Type Model (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlocal Type Model Ġ= Ġlocal Type Model , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtype Loader Ġ= Ġtype Loader , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlocal Serializer Factory Ġ= Ġlocal Serializer Factory ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠComp osed Serializer Factory ( local Serializer Factory , Ġremote Serializer Factory , Ġcustom Serializer Registry ) ĊĠĠĠ Ġ} Ċ } Ċ