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 ActionCreator
actionCreator()
default Optional<play.api.ApplicationLoader.DevContext>
devContext()
Helper to interact with the Play build environment.default play.api.http.HttpConfiguration
httpConfiguration()
default play.core.j.JavaContextComponents
javaContextComponents()
Deprecated.default MessagesApi
messagesApi()
default play.core.WebCommands
webCommands()
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:
javaContextComponents
in interfaceHttpErrorHandlerComponents
-
messagesApi
default MessagesApi messagesApi()
- Specified by:
messagesApi
in interfaceI18nComponents
- Returns:
- an instance of MessagesApi.
-
actionCreator
default ActionCreator actionCreator()
- Specified by:
actionCreator
in interfaceHttpComponents
-
httpConfiguration
default play.api.http.HttpConfiguration httpConfiguration()
- Specified by:
httpConfiguration
in 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.
-
-