HandlerConverters

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
}
Companion:
object
class Object
trait Matchable
class Any
object HandlerConverters.type

Type members

Classlikes

object DefaultCodecRegistry extends CodecRegistry

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]
Inherited from:
LowPriorityHandlerConverters1
final implicit def fromWriter[T](w: BSONWriter[T])(implicit tt: ClassTag[T]): Encoder[T]
Inherited from:
LowPriorityHandlerConverters1
final implicit def toReader[T](dec: Decoder[T]): BSONReader[T]
Inherited from:
LowPriorityHandlerConverters1
final implicit def toWriter[T](enc: Encoder[T]): BSONWriter[T]
Inherited from:
LowPriorityHandlerConverters1