Packages

  • package root
    Definition Classes
    root
  • package play

    Play framework.

    Play framework.

    Play

    http://www.playframework.com

    Definition Classes
    root
  • package api

    Contains the public API for Scala developers.

    Contains the public API for Scala developers.

    Read configuration
    val poolSize = configuration.getInt("engine.pool.size")
    Use the logger
    Logger.info("Hello!")
    Define a Plugin
    class MyPlugin(app: Application) extends Plugin
    Create adhoc applications (for testing)
    val application = Application(new File("."), this.getClass.getClassloader, None, Play.Mode.DEV)
    Definition Classes
    play
  • package libs

    Contains various APIs that are useful while developing web applications.

    Contains various APIs that are useful while developing web applications.

    Definition Classes
    api
  • package json

    Json API For example:

    Json API For example:

    import play.api.libs.json._
    import play.api.libs.functional.syntax._
    
    case class User(id: Long, name: String, friends: Seq[User] = Seq.empty)
    object User {
    
      // In this format, an undefined friends property is mapped to an empty list
      implicit val format: Format[User] = (
        (__ \ "id").format[Long] and
        (__ \ "name").format[String] and
        (__ \ "friends").lazyFormatNullable(implicitly[Format[Seq[User]]])
          .inmap[Seq[User]](_ getOrElse Seq.empty, Some(_))
      )(User.apply, unlift(User.unapply))
    }
    
    //then in a controller:
    
    object MyController extends Controller {
       def displayUserAsJson(id: String) = Action {
          Ok(Json.toJson(User(id.toLong, "myName")))
       }
       def saveUser(jsonString: String)= Action {
         val user = Json.parse(jsonString).as[User]
         myDataStore.save(user)
         Ok
       }
    }
    Definition Classes
    libs
  • package jackson
    Definition Classes
    json
  • PlayJsonModule

object PlayJsonModule extends PlayJsonModule

Annotations
@deprecated
Deprecated

(Since version 2.6.11) Use PlayJsonModule class instead

Source
JacksonJson.scala
Linear Supertypes
PlayJsonModule, SimpleModule, Serializable, Module, Versioned, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlayJsonModule
  2. PlayJsonModule
  3. SimpleModule
  4. Serializable
  5. Module
  6. Versioned
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _checkNotNull(arg0: Any, arg1: String): Unit
    Attributes
    protected[com.fasterxml.jackson.databind.module]
    Definition Classes
    SimpleModule
  5. def addAbstractTypeMapping[T](arg0: Class[T], arg1: Class[_ <: T]): SimpleModule
    Definition Classes
    SimpleModule
  6. def addDeserializer[T](arg0: Class[T], arg1: JsonDeserializer[_ <: T]): SimpleModule
    Definition Classes
    SimpleModule
  7. def addKeyDeserializer(arg0: Class[_], arg1: KeyDeserializer): SimpleModule
    Definition Classes
    SimpleModule
  8. def addKeySerializer[T](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
    Definition Classes
    SimpleModule
  9. def addSerializer[T](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
    Definition Classes
    SimpleModule
  10. def addSerializer(arg0: JsonSerializer[_]): SimpleModule
    Definition Classes
    SimpleModule
  11. def addValueInstantiator(arg0: Class[_], arg1: ValueInstantiator): SimpleModule
    Definition Classes
    SimpleModule
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getModuleName(): String
    Definition Classes
    SimpleModule → Module
  19. def getTypeId(): AnyRef
    Definition Classes
    SimpleModule → Module
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def registerSubtypes(arg0: Collection[Class[_]]): SimpleModule
    Definition Classes
    SimpleModule
  26. def registerSubtypes(arg0: <repeated...>[NamedType]): SimpleModule
    Definition Classes
    SimpleModule
    Annotations
    @transient()
  27. def registerSubtypes(arg0: <repeated...>[Class[_]]): SimpleModule
    Definition Classes
    SimpleModule
    Annotations
    @transient()
  28. def setAbstractTypes(arg0: SimpleAbstractTypeResolver): Unit
    Definition Classes
    SimpleModule
  29. def setDeserializerModifier(arg0: BeanDeserializerModifier): SimpleModule
    Definition Classes
    SimpleModule
  30. def setDeserializers(arg0: SimpleDeserializers): Unit
    Definition Classes
    SimpleModule
  31. def setKeyDeserializers(arg0: SimpleKeyDeserializers): Unit
    Definition Classes
    SimpleModule
  32. def setKeySerializers(arg0: SimpleSerializers): Unit
    Definition Classes
    SimpleModule
  33. def setMixInAnnotation(arg0: Class[_], arg1: Class[_]): SimpleModule
    Definition Classes
    SimpleModule
  34. def setNamingStrategy(arg0: PropertyNamingStrategy): SimpleModule
    Attributes
    protected[com.fasterxml.jackson.databind.module]
    Definition Classes
    SimpleModule
  35. def setSerializerModifier(arg0: BeanSerializerModifier): SimpleModule
    Definition Classes
    SimpleModule
  36. def setSerializers(arg0: SimpleSerializers): Unit
    Definition Classes
    SimpleModule
  37. def setValueInstantiators(arg0: SimpleValueInstantiators): Unit
    Definition Classes
    SimpleModule
  38. def setupModule(context: SetupContext): Unit
    Definition Classes
    PlayJsonModule → SimpleModule → Module
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def version(): Version
    Definition Classes
    SimpleModule → Module → Versioned
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PlayJsonModule

Inherited from SimpleModule

Inherited from Serializable

Inherited from Module

Inherited from Versioned

Inherited from AnyRef

Inherited from Any

Ungrouped