public class MappedJavaHandlerComponents extends Object implements play.core.j.JavaHandlerComponents
But this implementation does not uses an Injector. Instead, the necessary 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) |
MappedJavaHandlerComponents(ActionCreator actionCreator,
play.api.http.HttpConfiguration httpConfiguration,
scala.concurrent.ExecutionContext executionContext,
play.core.j.JavaContextComponents contextComponents)
Deprecated.
Deprecated as of 2.8.0. Use constructor without JavaContextComponents
|
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()
Deprecated.
|
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)
@Deprecated 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.JavaHandlerComponents
public <A extends Action<?>> A getAction(Class<A> actionClass)
getAction
in interface play.core.j.JavaHandlerComponents
public ActionCreator actionCreator()
actionCreator
in interface play.core.j.JavaHandlerComponents
public play.api.http.HttpConfiguration httpConfiguration()
httpConfiguration
in interface play.core.j.JavaHandlerComponents
public scala.concurrent.ExecutionContext executionContext()
executionContext
in interface play.core.j.JavaHandlerComponents
@Deprecated public play.core.j.JavaContextComponents contextComponents()
contextComponents
in interface play.core.j.JavaHandlerComponents
public <A extends Action<?>> MappedJavaHandlerComponents addAction(Class<A> clazz, Supplier<A> actionSupplier)
public <B extends BodyParser<?>> MappedJavaHandlerComponents addBodyParser(Class<B> clazz, Supplier<B> bodyParserSupplier)