public class MappedJavaHandlerComponents extends Object implements play.core.j.JavaHandlerComponents
Action and
BodyParser must be added here manually. This is way we avoid mixing runtime dependency
injector components with compile time injected ones.| Constructor and Description |
|---|
MappedJavaHandlerComponents(ActionCreator actionCreator,
play.api.http.HttpConfiguration httpConfiguration,
scala.concurrent.ExecutionContext executionContext,
play.core.j.JavaContextComponents contextComponents) |
| Modifier and Type | Method and Description |
|---|---|
ActionCreator |
actionCreator() |
<A extends Action<?>> |
addAction(Class<A> clazz,
Supplier<A> actionSupplier) |
<B extends BodyParser<?>> |
addBodyParser(Class<B> clazz,
Supplier<B> bodyParserSupplier) |
play.core.j.JavaContextComponents |
contextComponents() |
scala.concurrent.ExecutionContext |
executionContext() |
<A extends Action<?>> |
getAction(Class<A> actionClass) |
<A extends BodyParser<?>> |
getBodyParser(Class<A> parserClass) |
play.api.http.HttpConfiguration |
httpConfiguration() |
public MappedJavaHandlerComponents(ActionCreator actionCreator, play.api.http.HttpConfiguration httpConfiguration, scala.concurrent.ExecutionContext executionContext, play.core.j.JavaContextComponents contextComponents)
public <A extends BodyParser<?>> A getBodyParser(Class<A> parserClass)
getBodyParser in interface play.core.j.JavaHandlerComponentspublic <A extends Action<?>> A getAction(Class<A> actionClass)
getAction in interface play.core.j.JavaHandlerComponentspublic ActionCreator actionCreator()
actionCreator in interface play.core.j.JavaHandlerComponentspublic play.api.http.HttpConfiguration httpConfiguration()
httpConfiguration in interface play.core.j.JavaHandlerComponentspublic scala.concurrent.ExecutionContext executionContext()
executionContext in interface play.core.j.JavaHandlerComponentspublic play.core.j.JavaContextComponents contextComponents()
contextComponents in interface play.core.j.JavaHandlerComponentspublic <A extends Action<?>> MappedJavaHandlerComponents addAction(Class<A> clazz, Supplier<A> actionSupplier)
public <B extends BodyParser<?>> MappedJavaHandlerComponents addBodyParser(Class<B> clazz, Supplier<B> bodyParserSupplier)