scala.pickling.internal

DefaultPicklerRegistry

final class DefaultPicklerRegistry extends PicklerRegistry with RuntimePicklerRegistryHelper

Default pickle registry just uses TrieMaps and delgates behavior to a runtime pickler generator.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultPicklerRegistry
  2. RuntimePicklerRegistryHelper
  3. PicklerRegistry
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultPicklerRegistry(generator: RuntimePicklerGenerator)

Type Members

  1. type PicklerGenerator = (AppliedType) ⇒ Pickler[_]

  2. type UnpicklerGenerator = (AppliedType) ⇒ Unpickler[_]

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def autoRegisterDefaults(): Unit

    Definition Classes
    RuntimePicklerRegistryHelper
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def genPickler(classLoader: ClassLoader, clazz: Class[_], tag: FastTypeTag[_])(implicit share: Share): Pickler[_]

    Looks up a Pickler for the given tag.

    Looks up a Pickler for the given tag. If none is found, then we attempt to generate one.

    classLoader

    The classloader to use when reflecting over the pickled class.

    clazz

    The clazz we need to pickle.

    tag

    The full tag of the type we're pickling, which may or may not include type parameters.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  13. def genUnpickler(mirror: reflect.api.JavaUniverse.Mirror, tagKey: String)(implicit share: Share): Unpickler[_]

    Looks up the registered unpickler using the provided tagKey.

    Looks up the registered unpickler using the provided tagKey.

    If there are no registered picklers or pickler-generators, then we instead attempt to generate the pickler using the passed in information.

    TODO(jsuereth) - This should use classLoader just like genPickler. No reason to mix Java/Scala reflection.

    mirror

    The scala mirror (classloader/symbolloader) we use to generate the unpickler.

    tagKey

    The full tag of the type, which may or may not include type parameters.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def lookupPickler(key: String): Option[Pickler[_]]

    Looks for a pickler with the given FastTypeTag string.

    Looks for a pickler with the given FastTypeTag string.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  18. def lookupUnpickler(key: String): Option[Unpickler[_]]

    Checks the existince of an unpickler.

    Checks the existince of an unpickler.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def registerPickler[T](key: String, p: Pickler[T]): Unit

    Registers a pickler with this registry for future use.

    Registers a pickler with this registry for future use.

    key

    The type key for the pickler. Note: In reflective scenarios this may not include type parameters. In those situations, the pickler should be able to handle arbitrary (existential) type parameters.

    p

    The pickler to register.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  23. def registerPickler[T](p: Pickler[T]): Unit

    Definition Classes
    PicklerRegistry
  24. def registerPicklerGenerator[T](typeConstructorKey: String, generator: (AppliedType) ⇒ Pickler[T]): Unit

    Registers a function which can generate picklers for a given type constructor.

    Registers a function which can generate picklers for a given type constructor.

    typeConstructorKey

    The type constructor. e.g. "scala.List" for something that can make scala.List[A] picklers.

    generator

    A function which takes an applied type string (your type + arguments) and returns a pickler for this type.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  25. def registerPicklerUnpickler[T](key: String, p: Pickler[T] with Unpickler[T]): Unit

    Registers a pickler and unpickler for a type with this registry for future use.

    Registers a pickler and unpickler for a type with this registry for future use.

    key

    The type key for the pickler. Note: In reflective scenarios this may not include type parameters. In those situations, the pickler should be able to handle arbitrary (existential) type parameters.

    p

    The unpickler to register.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  26. def registerPicklerUnpickler[T](p: Pickler[T] with Unpickler[T]): Unit

    Definition Classes
    PicklerRegistry
  27. def registerPicklerUnpicklerGenerator[T](typeConstructorKey: String, generator: (AppliedType) ⇒ Pickler[T] with Unpickler[T]): Unit

    Registers a function which can generate picklers for a given type constructor.

    Registers a function which can generate picklers for a given type constructor.

    typeConstructorKey

    The type constructor. e.g. "scala.List" for something that can make scala.List[A] picklers.

    generator

    A function which takes an applied type string (your type + arguments) and returns a pickler for this type.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  28. def registerUnpickler[T](key: String, p: Unpickler[T]): Unit

    Registers an unpickler with this registry for future use.

    Registers an unpickler with this registry for future use.

    key

    The type key for the unpickler. Note: In reflective scenarios this may not include type parameters. In those situations, the unpickler should be able to handle arbitrary (existential) type parameters.

    p

    The unpickler to register.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  29. def registerUnpickler[T](p: Unpickler[T]): Unit

    Definition Classes
    PicklerRegistry
  30. def registerUnpicklerGenerator[T](typeConstructorKey: String, generator: (AppliedType) ⇒ Unpickler[T]): Unit

    Registers a function which can generate picklers for a given type constructor.

    Registers a function which can generate picklers for a given type constructor.

    typeConstructorKey

    The type constructor. e.g. "scala.List" for something that can make scala.List[A] picklers.

    generator

    A function which takes an applied type string (your type + arguments) and returns a pickler for this type.

    Definition Classes
    DefaultPicklerRegistryPicklerRegistry
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def tuplePicklerGenerator: (AppliedType) ⇒ Pickler[(Any, Any)] with Unpickler[(Any, Any)]

    Definition Classes
    RuntimePicklerRegistryHelper
  34. def tupleUnpicklerGenerator: (AppliedType) ⇒ Unpickler[(Any, Any)]

    Definition Classes
    RuntimePicklerRegistryHelper
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PicklerRegistry

Inherited from AnyRef

Inherited from Any

Ungrouped