Registers all the scala (and java) serializers we have
This class has a no-arg constructor, suitable for use with reflection instantiation It has no registered serializers, just the standard Kryo configured for Kryo.
This is a more fault-tolerant MeatLocker that tries first to do Java serialization, and then falls back to Kryo serialization if that does not work.
Use Kryo to provide a "box" which is efficiently Java serializable even if the underlying t is not, as long as it is serializable with Kryo.
Use Kryo to provide a "box" which is efficiently Java serializable even if the underlying t is not, as long as it is serializable with Kryo.
Externalizer has replaced this class. Prefer that.
Uses facts about how scala compiles object singletons to Java + reflection
Enrichment pattern to add methods to Kryo objects TODO: make this a value-class in scala 2.10 This also follows the builder pattern to allow easily chaining this calls
Makes an empty instantiator then registers everything
Copied from Spark, written by Matei Zaharia (matei@cs.berkeley.edu).
Copied from Spark, written by Matei Zaharia (matei@cs.berkeley.edu).
Ported to ASM 4.0 and refactored for scalding/summingbird by Oscar Boykin
Original code: https://github.com/mesos/spark/blob/master/core/src/main/scala/spark/ClosureCleaner.scala
Scala extensions to the Kryo serialization library.