Skip to content

Example project to illustrate problem when using kryo to serialize koin-instance

Notifications You must be signed in to change notification settings

holgerbrandl/kryo-koin

Repository files navigation

Koin Serialization with Kryo

Supplementary example for EsotericSoftware/kryo#864

The repo contains multiple examples, where I have tried to narrow down the issue.

  • KryoLambda.kt - generic kotlin labmda, works in both ways with kryo

  • KryoDefinition.kt - generic lambda, wrapped into other types works in both ways with kryo (includes KryoLambda)

  • KryoBeanDefinition.kt - more complex wrapper around KryoDefinition, fails to work with kryo

  • KryoInstanceFactory.kt - Includes KryoBeanDefinition, but does not work.

  • These examples arose from my original usecase, which is serializing/deserializing an instance of https://insert-koin.io/

About

Example project to illustrate problem when using kryo to serialize koin-instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages