Object/Trait

reactivemongo.play.json.compat

HandlerConverters

Related Docs: trait HandlerConverters | package compat

Permalink

object HandlerConverters extends HandlerConverters

See compat$ and HandlerConverters

Linear Supertypes
HandlerConverters, LowPriorityHandlerConverters1, LowPriorityHandlerConverters2, LowPriorityHandlerConverters3, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HandlerConverters
  2. HandlerConverters
  3. LowPriorityHandlerConverters1
  4. LowPriorityHandlerConverters2
  5. LowPriorityHandlerConverters3
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. implicit final def fromDocumentHandler[T](h: BSONDocumentHandler[T]): OFormat[T]

    Permalink

    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
    }
    Definition Classes
    HandlerConverters
  10. implicit final def fromDocumentWriter[T](w: BSONDocumentWriter[T]): OWrites[T]

    Permalink

    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
  11. implicit final def fromHandler[T](h: BSONHandler[T]): Format[T]

    Permalink
    Definition Classes
    LowPriorityHandlerConverters1
  12. implicit final def fromReader[T](implicit r: BSONReader[T]): Reads[T]

    Permalink

    Provided there is a BSON reader, a JSON one is resolved.

    Provided there is a BSON reader, a JSON one is resolved.

    import play.api.libs.json.Reads
    import reactivemongo.api.bson.BSONReader
    import reactivemongo.play.json.compat.fromReader
    
    def foo[T: BSONReader]: Reads[T] = implicitly[Reads[T]]
    Definition Classes
    LowPriorityHandlerConverters3
  13. implicit final def fromReaderConv[T](r: BSONReader[T]): Reads[T]

    Permalink
    Definition Classes
    LowPriorityHandlerConverters3
  14. implicit final def fromWriterConv[T](w: BSONWriter[T]): Writes[T]

    Permalink
    Definition Classes
    LowPriorityHandlerConverters3
  15. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  18. implicit def jsonReaderNewValue[B <: BSONValue, L](implicit r: BSONReader[B], conv: (B) ⇒ L): Reads[L]

    Permalink

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

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

    Definition Classes
    HandlerConverters
  19. implicit def jsonWriterNewDocument[L](implicit conv: (L) ⇒ BSONDocument): OWrites[L]

    Permalink

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

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

    Definition Classes
    HandlerConverters
  20. implicit def jsonWriterNewValue[B <: BSONValue, L](implicit conv: (L) ⇒ B): Writes[L]

    Permalink

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

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

    import play.api.libs.json.Writes
    import reactivemongo.api.bson.BSONObjectID
    import reactivemongo.play.json.compat.jsonWriterNewValue
    
    val w = implicitly[Writes[BSONObjectID]]
    Definition Classes
    LowPriorityHandlerConverters1
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. implicit final def toDocumentHandler[T](h: OFormat[T]): BSONDocumentHandler[T]

    Permalink

    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
    }
    Definition Classes
    HandlerConverters
  26. final def toDocumentReaderConv[T](r: Reads[T]): BSONDocumentReader[T]

    Permalink

    Raises a JsError is the JSON value is not a JsObject.

    Raises a JsError is the JSON value is not a JsObject.

    import reactivemongo.play.json.compat.toDocumentReaderConv
    
    def lorem[T](jr: play.api.libs.json.Reads[T]) =
      toDocumentReaderConv(jr)
    Definition Classes
    LowPriorityHandlerConverters3
  27. implicit final def toDocumentWriter[T](implicit w: OWrites[T]): BSONDocumentWriter[T]

    Permalink

    Provided there is a Play JSON OWrites, resolve a document writer.

    Provided there is a Play JSON OWrites, resolve a document writer.

    import play.api.libs.json.OWrites
    import reactivemongo.api.bson.BSONDocumentWriter
    import reactivemongo.play.json.compat.toDocumentWriter
    
    def foo[T : OWrites]: BSONDocumentWriter[T] =
      implicitly[BSONDocumentWriter[T]]
    Definition Classes
    LowPriorityHandlerConverters2
    See also

    toDocumentWriterConv

  28. implicit final def toDocumentWriterConv[T](w: OWrites[T]): BSONDocumentWriter[T]

    Permalink

    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
  29. implicit final def toHandler[T](h: Format[T]): BSONHandler[T]

    Permalink
    Definition Classes
    LowPriorityHandlerConverters1
  30. implicit final def toReader[T](implicit r: Reads[T]): BSONReader[T]

    Permalink

    Provided there is a Play JSON Reads, resolve a BSON reader.

    Provided there is a Play JSON Reads, resolve a BSON reader.

    import play.api.libs.json.Reads
    import reactivemongo.api.bson.BSONReader
    import reactivemongo.play.json.compat.toReader
    
    def foo[T: Reads]: BSONReader[T] = implicitly[BSONReader[T]]
    Definition Classes
    LowPriorityHandlerConverters2
    See also

    toDocumentWriterConv

  31. implicit final def toReaderConv[T](r: Reads[T]): BSONReader[T]

    Permalink

    Converts a Play JSON Reads to a BSON reader.

    Converts a Play JSON Reads to a BSON reader.

    import play.api.libs.json.Reads
    import reactivemongo.api.bson.BSONReader
    import reactivemongo.play.json.compat.toReaderConv
    
    def foo[T](implicit r: Reads[T]): BSONReader[T] = r
    Definition Classes
    LowPriorityHandlerConverters2
    See also

    toDocumentWriterConv

  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. implicit final def toWriter[T](w: Writes[T]): BSONWriter[T]

    Permalink
    Definition Classes
    LowPriorityHandlerConverters3
  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HandlerConverters

Inherited from LowPriorityHandlerConverters1

Inherited from LowPriorityHandlerConverters2

Inherited from LowPriorityHandlerConverters3

Inherited from AnyRef

Inherited from Any

Ungrouped