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
public interface BuiltInComponents extends PekkoComponents, PekkoTypedComponents, ApplicationComponents, BaseComponents, BodyParserComponents, ConfigurationComponents, CryptoComponents, FileMimeTypesComponents, HttpComponents, HttpErrorHandlerComponents, I18nComponents, TemporaryFileComponents
Helper to provide the Play built in components.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ActionCreatoractionCreator()default Optional<play.api.ApplicationLoader.DevContext>devContext()Helper to interact with the Play build environment.default play.api.http.HttpConfigurationhttpConfiguration()default play.core.j.JavaContextComponentsjavaContextComponents()Deprecated.default MessagesApimessagesApi()default play.core.WebCommandswebCommands()Commands that intercept requests before the rest of the application handles them.-
Methods inherited from interface play.components.ApplicationComponents
application
-
Methods inherited from interface play.components.BaseComponents
applicationLifecycle, environment, router, sourceMapper
-
Methods inherited from interface play.components.BodyParserComponents
anyContentBodyParser, bytesBodyParser, defaultBodyParser, defaultScalaBodyParser, emptyBodyParser, formUrlEncodedBodyParser, jsonBodyParser, multipartFormDataBodyParser, rawBodyParser, scalaBodyParsers, textBodyParser, tolerantJsonBodyParser, tolerantTextBodyParser, tolerantXmlBodyParser, xmlBodyParser
-
Methods inherited from interface play.components.ConfigurationComponents
config, configuration
-
Methods inherited from interface play.components.CryptoComponents
clock, cookieSigner, csrfTokenSigner
-
Methods inherited from interface play.components.FileMimeTypesComponents
fileMimeTypes
-
Methods inherited from interface play.components.HttpComponents
httpFilters, httpRequestHandler, javaHandlerComponents
-
Methods inherited from interface play.components.HttpConfigurationComponents
sessionConfiguration
-
Methods inherited from interface play.components.HttpErrorHandlerComponents
httpErrorHandler, scalaHttpErrorHandler
-
Methods inherited from interface play.i18n.I18nComponents
langs
-
Methods inherited from interface play.components.PekkoComponents
actorSystem, coordinatedShutdown, executionContext, materializer
-
Methods inherited from interface play.components.PekkoTypedComponents
actorSystem, scheduler
-
Methods inherited from interface play.components.TemporaryFileComponents
tempFileCreator
-
-
-
-
Method Detail
-
javaContextComponents
@Deprecated default play.core.j.JavaContextComponents javaContextComponents()
Deprecated.- Specified by:
javaContextComponentsin interfaceHttpErrorHandlerComponents
-
messagesApi
default MessagesApi messagesApi()
- Specified by:
messagesApiin interfaceI18nComponents- Returns:
- an instance of MessagesApi.
-
actionCreator
default ActionCreator actionCreator()
- Specified by:
actionCreatorin interfaceHttpComponents
-
httpConfiguration
default play.api.http.HttpConfiguration httpConfiguration()
- Specified by:
httpConfigurationin interfaceHttpConfigurationComponents
-
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.
-
-