play

api

package api

Contains the public API for Scala developers.

Access the current Play application
import play.api.Play.current
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)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. api
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Application extends AnyRef

    A Play application.

  2. trait ApplicationLoader extends AnyRef

    Loads an application.

  3. trait BuiltInComponents extends AnyRef

    Helper to provide the Play built in components.

  4. abstract class BuiltInComponentsFromContext extends BuiltInComponents

    Helper that provides all the built in components dependencies from the application loader context

  5. case class Configuration(underlying: Config) extends Product with Serializable

    A full configuration set.

  6. class DefaultApplication extends Application

    Annotations
    @Singleton()
  7. case class Environment(rootPath: File, classLoader: ClassLoader, mode: Mode.Mode) extends Product with Serializable

    The environment for the application.

  8. class GlobalPlugin extends Deprecated

    The Global plugin executes application's globalSettings onStart and onStop.

  9. trait GlobalSettings extends AnyRef

    Defines an application’s global settings.

  10. class Logger extends LoggerLike

    A Play logger.

  11. trait LoggerLike extends AnyRef

    Typical logger interface.

  12. class OptionalSourceMapper extends AnyRef

  13. class Plugins extends IndexedSeqLike[Deprecated, IndexedSeq[Deprecated]] with IndexedSeq[Deprecated]

  14. case class UnexpectedException(message: Option[String] = scala.None, unexpected: Option[Throwable] = scala.None) extends PlayException with Product with Serializable

    Generic exception for unexpected error cases.

  15. trait Plugin extends AnyRef

    A Play plugin.

Value Members

  1. object Application

  2. object ApplicationLoader

  3. object Configuration extends Serializable

    This object provides a set of operations to create Configuration values.

  4. object DefaultGlobal extends GlobalSettings

    The default global settings if not defined in the application.

  5. object Environment extends Serializable

  6. object GlobalSettings

  7. object Logger extends LoggerLike

    High-level API for logging operations.

  8. object Mode extends Enumeration

    Application mode, either DEV, TEST, or PROD.

  9. object Play

    High-level API to access Play global features.

  10. object Plugins

  11. package data

    Contains data manipulation helpers (typically HTTP form handling)

  12. package http

    Contains standard HTTP constants.

  13. package i18n

    Contains the internationalisation API.

  14. package inject

    Play's runtime dependency injection abstraction.

  15. package libs

    Contains various APIs that are useful while developing web applications.

  16. package mvc

    Contains the Controller/Action/Result API to handle HTTP requests.

  17. package routing

  18. package templates

Deprecated Value Members

  1. object Routes

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use play.api.routing.Router instead

Inherited from AnyRef

Inherited from Any

Ungrouped