Packages

trait HandlerConverters extends LowPriorityHandlerConverters1

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

import reactivemongo.api.bson.compat.HandlerConverters._

def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = {
  val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw
  w
}

import reactivemongo.bson.BSONValue

def bar[T](lr: reactivemongo.api.bson.BSONReader[T]) = {
  val r: reactivemongo.bson.BSONReader[BSONValue, T] = lr
  r
}
Linear Supertypes
LowPriorityHandlerConverters1, LowPriorityHandlerConverters2, LowPriorityHandlerConverters3, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HandlerConverters
  2. LowPriorityHandlerConverters1
  3. LowPriorityHandlerConverters2
  4. LowPriorityHandlerConverters3
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from HandlerConverters toany2stringadd[HandlerConverters] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HandlerConverters, B)
    Implicit
    This member is added by an implicit conversion from HandlerConverters toArrowAssoc[HandlerConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def ensuring(cond: (HandlerConverters) => Boolean, msg: => Any): HandlerConverters
    Implicit
    This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (HandlerConverters) => Boolean): HandlerConverters
    Implicit
    This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: => Any): HandlerConverters
    Implicit
    This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): HandlerConverters
    Implicit
    This member is added by an implicit conversion from HandlerConverters toEnsuring[HandlerConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from HandlerConverters toStringFormat[HandlerConverters] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  15. implicit final def fromDocumentHandler[T](h: BSONDocumentHandler[T]): bson.BSONDocumentHandler[T]

    Implicit conversion from new BSONDocumentHandler to the legacy API.

    Implicit conversion from new BSONDocumentHandler to the legacy API.

    import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentHandler
    
    def bar[T](lh: reactivemongo.api.bson.BSONDocumentHandler[T]) = {
      val h: reactivemongo.bson.BSONDocumentHandler[T] = lh
      h
    }
  16. implicit final def fromDocumentReader[T](r: BSONDocumentReader[T]): bson.BSONDocumentReader[T]

    import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentReader
    
    def foo[T](r: reactivemongo.api.bson.BSONDocumentReader[T]) = {
      val lr: reactivemongo.bson.BSONDocumentReader[T] = r
      lr
    }
    Definition Classes
    LowPriorityHandlerConverters2
  17. implicit final def fromDocumentWriter[T](w: BSONDocumentWriter[T]): bson.BSONDocumentWriter[T]

    import reactivemongo.api.bson.compat.HandlerConverters.fromDocumentWriter
    
    def bar[T](lw: reactivemongo.api.bson.BSONDocumentWriter[T]) = {
      val w: reactivemongo.bson.BSONDocumentWriter[T] = lw
      w
    }
    Definition Classes
    LowPriorityHandlerConverters2
  18. implicit final def fromHandler[T](h: BSONHandler[T]): bson.BSONHandler[bson.BSONValue, T]
    Definition Classes
    LowPriorityHandlerConverters1
  19. implicit final def fromReader[T](r: BSONReader[T]): bson.BSONReader[bson.BSONValue, T]
    Definition Classes
    LowPriorityHandlerConverters3
  20. implicit final def fromWriter[T](w: BSONWriter[T]): bson.BSONWriter[T, bson.BSONValue]
    Definition Classes
    LowPriorityHandlerConverters3
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def legacyDocumentHandler[T](implicit r: bson.BSONDocumentReader[T], w: bson.BSONDocumentWriter[T]): bson.BSONDocumentHandler[T]
    Definition Classes
    LowPriorityHandlerConverters1
  25. implicit def legacyReaderNewValue[B <: BSONValue, L](implicit r: BSONDocumentReader[B], conv: (B) => L): bson.BSONDocumentReader[L]

    Based on the compatibility conversions, provides instances of legacy BSONDocumentReader for the new BSON value API.

  26. implicit def legacyWriterNewValue[B <: BSONValue, L](implicit w: BSONDocumentWriter[B], conv: (L) => B): bson.BSONDocumentWriter[L]

    Based on the compatibility conversions, provides instances of legacy BSONDocumentWriter for the new BSON value API.

  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def providedDocumentHandler[T](implicit r: BSONDocumentReader[T], w: BSONDocumentWriter[T]): BSONDocumentHandler[T]

    Provided there are both a BSONDocumentReader and a BSONDocumentWriter for the given type T, a BSONDocumentHandler is materialized.

    Provided there are both a BSONDocumentReader and a BSONDocumentWriter for the given type T, a BSONDocumentHandler is materialized.

    Definition Classes
    LowPriorityHandlerConverters1
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. implicit final def toDocumentHandler[T](h: bson.BSONDocumentHandler[T]): BSONDocumentHandler[T]

    Implicit conversion from legacy BSONDocumentHandler to the new API.

    Implicit conversion from legacy BSONDocumentHandler to the new API.

    import reactivemongo.api.bson.compat.HandlerConverters.toDocumentHandler
    
    def foo[T](lh: reactivemongo.bson.BSONDocumentHandler[T]) = {
      val h: reactivemongo.api.bson.BSONDocumentHandler[T] = lh
      h
    }
  33. implicit final def toDocumentReader[T](implicit r: bson.BSONDocumentReader[T]): BSONDocumentReader[T]

    Provided there is a legacy document reader, resolve a new one.

    Provided there is a legacy document reader, resolve a new one.

    Definition Classes
    LowPriorityHandlerConverters2
  34. implicit final def toDocumentReaderConv[T](r: bson.BSONDocumentReader[T]): BSONDocumentReader[T]

    import reactivemongo.api.bson.compat.HandlerConverters.toDocumentReaderConv
    
    def lorem[T](lw: reactivemongo.bson.BSONDocumentReader[T]) = {
      val w: reactivemongo.api.bson.BSONDocumentReader[T] = lw
      w
    }
    Definition Classes
    LowPriorityHandlerConverters2
  35. implicit final def toDocumentWriter[T](implicit w: bson.BSONDocumentWriter[T]): BSONDocumentWriter[T]

    Provided there is a legacy document writer, resolve a new one.

    Provided there is a legacy document writer, resolve a new one.

    Definition Classes
    LowPriorityHandlerConverters2
  36. implicit final def toDocumentWriterConv[T](w: bson.BSONDocumentWriter[T]): BSONDocumentWriter[T]

    import reactivemongo.api.bson.compat.HandlerConverters.toDocumentWriterConv
    
    def foo[T](lw: reactivemongo.bson.BSONDocumentWriter[T]) = {
      val w: reactivemongo.api.bson.BSONDocumentWriter[T] = lw
      w
    }
    Definition Classes
    LowPriorityHandlerConverters2
  37. implicit final def toHandler[T, B <: bson.BSONValue](h: bson.BSONHandler[B, T])(implicit bc: ClassTag[B]): BSONHandler[T]
    Definition Classes
    LowPriorityHandlerConverters1
  38. implicit final def toReader[T, B <: bson.BSONValue](r: bson.BSONReader[B, T])(implicit bc: ClassTag[B]): BSONReader[T]
    Definition Classes
    LowPriorityHandlerConverters3
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. implicit final def toWriter[T](w: bson.BSONWriter[T, _ <: bson.BSONValue]): BSONWriter[T]
    Definition Classes
    LowPriorityHandlerConverters3
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def [B](y: B): (HandlerConverters, B)
    Implicit
    This member is added by an implicit conversion from HandlerConverters toArrowAssoc[HandlerConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from LowPriorityHandlerConverters1

Inherited from LowPriorityHandlerConverters2

Inherited from LowPriorityHandlerConverters3

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromHandlerConverters to any2stringadd[HandlerConverters]

Inherited by implicit conversion StringFormat fromHandlerConverters to StringFormat[HandlerConverters]

Inherited by implicit conversion Ensuring fromHandlerConverters to Ensuring[HandlerConverters]

Inherited by implicit conversion ArrowAssoc fromHandlerConverters to ArrowAssoc[HandlerConverters]

Ungrouped