Packages

trait HandlerConverters extends LowPriorityHandlerConverters1

Implicit conversions for handler types between play.api.libs.json and reactivemongo.api.bson .

import reactivemongo.play.json.compat.HandlerConverters._

def foo[T](jw: play.api.libs.json.OWrites[T]) = {
  val w: reactivemongo.api.bson.BSONDocumentWriter[T] = jw
  w
}

def bar[T](br: reactivemongo.api.bson.BSONReader[T]) = {
  val r: play.api.libs.json.Reads[T] = br
  r
}

Note: Logger reactivemongo.api.play.json.HandlerConverters can be used to debug.

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()
  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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. 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()
  16. implicit final def fromDocumentHandler[T](h: BSONDocumentHandler[T]): OFormat[T]

    Implicit conversion from new BSONDocumentHandler to Play JSON.

    Implicit conversion from new BSONDocumentHandler to Play JSON.

    import reactivemongo.play.json.compat.HandlerConverters.fromDocumentHandler
    
    def bar[T](bh: reactivemongo.api.bson.BSONDocumentHandler[T]) = {
      val h: play.api.libs.json.OFormat[T] = bh
      h
    }
  17. implicit final def fromDocumentReader[T](r: BSONDocumentReader[T]): Reads[T]

    import reactivemongo.play.json.compat.HandlerConverters.fromDocumentReader
    
    def foo[T](r: reactivemongo.api.bson.BSONDocumentReader[T]) = {
      val jr: play.api.libs.json.Reads[T] = r
      jr
    }
    Definition Classes
    LowPriorityHandlerConverters2
  18. implicit final def fromDocumentWriter[T](w: BSONDocumentWriter[T]): OWrites[T]

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

    Based on the compatibility conversions, provides instances of Play JSON Reads for the new BSON value API.

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

    Based on the compatibility conversions, provides instances of Play JSON OWrites 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()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. implicit final def toDocumentHandler[T](h: OFormat[T]): BSONDocumentHandler[T]

    Implicit conversion from Play JSON OFormat to the BSON API.

    Implicit conversion from Play JSON OFormat to the BSON API.

    import reactivemongo.play.json.compat.HandlerConverters.toDocumentHandler
    
    def foo[T](jh: play.api.libs.json.OFormat[T]) = {
      val h: reactivemongo.api.bson.BSONDocumentHandler[T] = jh
      h
    }
  32. implicit final def toDocumentReader[T](implicit r: Reads[T]): BSONDocumentReader[T]

    Provided there is a Play JSON Reads, resolve a new one.

    Provided there is a Play JSON Reads, resolve a new one.

    Definition Classes
    LowPriorityHandlerConverters3
  33. implicit final def toDocumentReaderConv[T](r: Reads[T]): BSONDocumentReader[T]

    import reactivemongo.play.json.compat.HandlerConverters.toDocumentReaderConv
    
    def lorem[T](jr: play.api.libs.json.Reads[T]) = {
      val w: reactivemongo.api.bson.BSONDocumentReader[T] = jr
      w
    }
    Definition Classes
    LowPriorityHandlerConverters3
  34. implicit final def toDocumentWriter[T](implicit w: OWrites[T]): BSONDocumentWriter[T]

    Provided there is a Play JSON OWrites, resolve a new one.

    Provided there is a Play JSON OWrites, resolve a new one.

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

    import reactivemongo.play.json.compat.HandlerConverters.toDocumentWriterConv
    
    def foo[T](jw: play.api.libs.json.OWrites[T]) = {
      val w: reactivemongo.api.bson.BSONDocumentWriter[T] = jw
      w
    }
    Definition Classes
    LowPriorityHandlerConverters2
  36. implicit final def toHandler[T](h: Format[T]): BSONHandler[T]
    Definition Classes
    LowPriorityHandlerConverters1
  37. implicit final def toReader[T](r: Reads[T]): BSONReader[T]
    Definition Classes
    LowPriorityHandlerConverters2
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. implicit final def toWriter[T](w: Writes[T]): BSONWriter[T]
    Definition Classes
    LowPriorityHandlerConverters3
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. 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