SerializationCustomSerializer
Keywords: net.corda.core.serialization.SerializationCustomSerializer interface
Date: 2023-09-18

net.corda.core.serialization

## Interface SerializationCustomSerializer<OBJ,PROXY>

-     public SerializationCustomSerializer<OBJ,PROXY>

  Allows CorDapps to provide custom serializers for third party libraries where those libraries cannot be recompiled with the -parameters flag rendering their classes natively serializable by Corda. In this case a proxy serializer can be written that extends this type whose purpose is to move between those an unserializable types and an intermediate representation.

  NOTE: The proxy object should be specified as a separate class. However, this can be defined within the scope of the custom serializer.

- - ### Constructor Detail

    - #### SerializationCustomSerializer

          public SerializationCustomSerializer()

  - ### Method Detail

    - #### toProxy

          PROXY toProxy(OBJ obj)

      Should facilitate the conversion of the third party object into the serializable local class specified by PROXY

    - #### fromProxy

          OBJ fromProxy(PROXY proxy)

      Should facilitate the conversion of the proxy object into a new instance of the unserializable type