Package play

Interface BuiltInComponents

All Superinterfaces:
ApplicationComponents, BaseComponents, BodyParserComponents, ConfigurationComponents, CryptoComponents, FileMimeTypesComponents, HttpComponents, HttpConfigurationComponents, HttpErrorHandlerComponents, I18nComponents, PekkoComponents, PekkoTypedComponents, TemporaryFileComponents
All Known Implementing Classes:
BuiltInComponentsFromContext, ContextBasedBuiltInComponents, RoutingDslComponentsFromContext

Helper to provide the Play built in components.
  • Method Details

    • javaContextComponents

      @Deprecated default play.core.j.JavaContextComponents javaContextComponents()
      Deprecated.
      Specified by:
      javaContextComponents in interface HttpErrorHandlerComponents
    • messagesApi

      default MessagesApi messagesApi()
      Specified by:
      messagesApi in interface I18nComponents
      Returns:
      an instance of MessagesApi.
    • actionCreator

      default ActionCreator actionCreator()
      Specified by:
      actionCreator in interface HttpComponents
    • httpConfiguration

      default play.api.http.HttpConfiguration httpConfiguration()
      Specified by:
      httpConfiguration in interface HttpConfigurationComponents
    • webCommands

      default play.core.WebCommands webCommands()
      Commands that intercept requests before the rest of the application handles them. Used by Evolutions.
      Returns:
      the application web commands.
    • devContext

      default Optional<play.api.ApplicationLoader.DevContext> devContext()
      Helper to interact with the Play build environment. Only available in dev mode.