HandlerConverters

reactivemongo.api.bson.msb.HandlerConverters
See theHandlerConverters companion object

Implicit conversions for handler types between org.bson and reactivemongo.api.bson .

import reactivemongo.api.bson.msb.HandlerConverters._

def foo[T](enc: org.bson.codecs.Encoder[T]) = {
 val w: reactivemongo.api.bson.BSONWriter[T] = enc
 w
}

def bar[T](lr: reactivemongo.api.bson.BSONReader[T]) = {
 val dec: org.bson.codecs.Decoder[T] = lr
 dec
}

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

object DefaultCodecRegistry extends CodecRegistry

Attributes

Supertypes
trait CodecRegistry
class Object
trait Matchable
class Any
Self type

Implicits

Implicits

final implicit def fromHandler[T](h: BSONHandler[T])(implicit tt: ClassTag[T], cr: CodecRegistry): Codec[T]
final implicit def toHandler[T](h: Codec[T]): BSONHandler[T]

Inherited implicits

final implicit def fromReader[T](r: BSONReader[T])(implicit cr: CodecRegistry): Decoder[T]

Attributes

Inherited from:
LowPriorityHandlerConverters1 (hidden)
final implicit def fromWriter[T](w: BSONWriter[T])(implicit tt: ClassTag[T]): Encoder[T]

Attributes

Inherited from:
LowPriorityHandlerConverters1 (hidden)
final implicit def toReader[T](dec: Decoder[T]): BSONReader[T]

Attributes

Inherited from:
LowPriorityHandlerConverters1 (hidden)
final implicit def toWriter[T](enc: Encoder[T]): BSONWriter[T]

Attributes

Inherited from:
LowPriorityHandlerConverters1 (hidden)