Package play
Class ContextBasedBuiltInComponents
java.lang.Object
play.ContextBasedBuiltInComponents
- All Implemented Interfaces:
BuiltInComponents,ApplicationComponents,BaseComponents,BodyParserComponents,ConfigurationComponents,CryptoComponents,FileMimeTypesComponents,HttpComponents,HttpConfigurationComponents,HttpErrorHandlerComponents,PekkoComponents,PekkoTypedComponents,TemporaryFileComponents,I18nComponents
- Direct Known Subclasses:
BuiltInComponentsFromContext
This helper class provides all the built-in component dependencies by trading them for a single
dependency - the application loader context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.typesafe.config.Configconfig()abstract ApplicationLoader.Contextcontext()Returns the application loader context.Optional<play.api.ApplicationLoader.DevContext>Helper to interact with the Play build environment.The application environment.langs()Optional<play.core.SourceMapper>play.core.WebCommandsCommands that intercept requests before the rest of the application handles them.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface play.components.BaseComponents
routerMethods inherited from interface play.components.BodyParserComponents
anyContentBodyParser, bytesBodyParser, defaultBodyParser, defaultScalaBodyParser, emptyBodyParser, formUrlEncodedBodyParser, jsonBodyParser, multipartFormDataBodyParser, rawBodyParser, scalaBodyParsers, textBodyParser, tolerantJsonBodyParser, tolerantTextBodyParser, tolerantXmlBodyParser, xmlBodyParserMethods inherited from interface play.BuiltInComponents
actionCreator, httpConfiguration, javaContextComponents, messagesApiMethods inherited from interface play.components.ConfigurationComponents
configurationMethods inherited from interface play.components.CryptoComponents
clockMethods inherited from interface play.components.HttpComponents
httpFiltersMethods inherited from interface play.components.HttpConfigurationComponents
sessionConfigurationMethods inherited from interface play.components.HttpErrorHandlerComponents
scalaHttpErrorHandlerMethods inherited from interface play.components.PekkoComponents
executionContext, materializerMethods inherited from interface play.components.PekkoTypedComponents
scheduler
-
Constructor Details
-
ContextBasedBuiltInComponents
public ContextBasedBuiltInComponents()
-
-
Method Details
-
context
Returns the application loader context. The implementation should return a stable, effectively singleton value. -
config
public com.typesafe.config.Config config()- Specified by:
configin interfaceConfigurationComponents
-
environment
Description copied from interface:BaseComponentsThe application environment.- Specified by:
environmentin interfaceBaseComponents- Returns:
- an instance of the application environment
-
sourceMapper
- Specified by:
sourceMapperin interfaceBaseComponents
-
devContext
Description copied from interface:BuiltInComponentsHelper to interact with the Play build environment. Only available in dev mode.- Specified by:
devContextin interfaceBuiltInComponents
-
applicationLifecycle
- Specified by:
applicationLifecyclein interfaceBaseComponents
-
webCommands
public play.core.WebCommands webCommands()Description copied from interface:BuiltInComponentsCommands that intercept requests before the rest of the application handles them. Used by Evolutions.- Specified by:
webCommandsin interfaceBuiltInComponents- Returns:
- the application web commands.
-
application
- Specified by:
applicationin interfaceApplicationComponents
-
langs
- Specified by:
langsin interfaceI18nComponents- Returns:
- an instance of Langs.
-
fileMimeTypes
- Specified by:
fileMimeTypesin interfaceFileMimeTypesComponents
-
javaHandlerComponents
- Specified by:
javaHandlerComponentsin interfaceHttpComponents
-
httpErrorHandler
- Specified by:
httpErrorHandlerin interfaceHttpErrorHandlerComponents
-
httpRequestHandler
- Specified by:
httpRequestHandlerin interfaceHttpComponents
-
actorSystem
- Specified by:
actorSystemin interfacePekkoComponents- Specified by:
actorSystemin interfacePekkoTypedComponents
-
coordinatedShutdown
- Specified by:
coordinatedShutdownin interfacePekkoComponents
-
cookieSigner
- Specified by:
cookieSignerin interfaceCryptoComponents
-
csrfTokenSigner
- Specified by:
csrfTokenSignerin interfaceCryptoComponents
-
tempFileCreator
- Specified by:
tempFileCreatorin interfaceTemporaryFileComponents
-