play.core
package play.core
Members list
Packages
package play.core.j
Type members
Classlikes
class FileMimeTypesModule extends SimpleModule
Module that injects a [[FileMimeTypes]]
to [[StaticFileMimeTypes]]
on start and on stop.
Module that injects a [[FileMimeTypes]]
to [[StaticFileMimeTypes]]
on start and on stop.
This solves the issue of having the need to explicitly pass [[FileMimeTypes]]
to Results.ok(...) and StatusHeader.sendResource(...)
Attributes
- Supertypes
@Singleton
class FileMimeTypesProvider(lifecycle: ApplicationLifecycle, scalaFileMimeTypes: FileMimeTypes) extends Provider[FileMimeTypes]
Attributes
- Supertypes
trait ObjectMapperComponents
Components for Jackson ObjectMapper and Play's Json.
Components for Jackson ObjectMapper and Play's Json.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
class ObjectMapperModule extends SimpleModule
Module that injects an object mapper to the JSON library on start and on stop.
Module that injects an object mapper to the JSON library on start and on stop.
This solves the issue of the ObjectMapper cache from holding references to the application class loader between reloads.
Attributes
- Supertypes
object ObjectMapperProvider
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ObjectMapperProvider.type
@Singleton
class ObjectMapperProvider(lifecycle: ApplicationLifecycle, actorSystem: ActorSystem) extends Provider[ObjectMapper]
Attributes
- Companion
- object
- Supertypes
-
trait Provider[ObjectMapper]class Objecttrait Matchableclass Any
In this article