Package play.core.j

Class MappedJavaHandlerComponents

  • All Implemented Interfaces:
    play.core.j.JavaHandlerComponents

    public class MappedJavaHandlerComponents
    extends Object
    implements play.core.j.JavaHandlerComponents
    The components necessary to handle a Java handler.

    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 Detail

      • MappedJavaHandlerComponents

        public MappedJavaHandlerComponents​(ActionCreator actionCreator,
                                           play.api.http.HttpConfiguration httpConfiguration,
                                           scala.concurrent.ExecutionContext executionContext)
      • MappedJavaHandlerComponents

        @Deprecated
        public 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
    • Method Detail

      • getBodyParser

        public <A extends BodyParser<?>> A getBodyParser​(Class<A> parserClass)
        Specified by:
        getBodyParser in interface play.core.j.JavaHandlerComponents
      • getAction

        public <A extends Action<?>> A getAction​(Class<A> actionClass)
        Specified by:
        getAction in interface play.core.j.JavaHandlerComponents
      • actionCreator

        public ActionCreator actionCreator()
        Specified by:
        actionCreator in interface play.core.j.JavaHandlerComponents
      • httpConfiguration

        public play.api.http.HttpConfiguration httpConfiguration()
        Specified by:
        httpConfiguration in interface play.core.j.JavaHandlerComponents
      • executionContext

        public scala.concurrent.ExecutionContext executionContext()
        Specified by:
        executionContext in interface play.core.j.JavaHandlerComponents
      • contextComponents

        @Deprecated
        public play.core.j.JavaContextComponents contextComponents()
        Deprecated.
        Specified by:
        contextComponents in interface play.core.j.JavaHandlerComponents