/*
 * Copyright (C) 2009-2016 Typesafe Inc. <http://www.typesafe.com>
 */
package play.http;

import java.lang.reflect.Method;

import javax.inject.Inject;

import play.mvc.Action;
import play.mvc.Http.Request;

/**
 * An action creator that delegates to HttpRequestHandler.
 *
 * If you wish to customize these behaviors, you should override the ones here rather than the (deprecated) ones in
 * HttpRequestHandler.
 */
public class HttpRequestHandlerActionCreator implements ActionCreator {

  private final HttpRequestHandler httpRequestHandler;

  @Inject
  public HttpRequestHandlerActionCreator(HttpRequestHandler httpRequestHandler) {
    this.httpRequestHandler = httpRequestHandler;
  }

  @Override
  public Action createAction(Request request, Method actionMethod) {
    return httpRequestHandler.createAction(request, actionMethod);
  }

  @Override
  public Action wrapAction(Action action) {
    return httpRequestHandler.wrapAction(action);
  }
}

@@ -148,16 +148,46 @@
 .Inject;
+%0Aimport javax.inject.Provider;
 %0A%0Aimport
@@ -533,16 +533,25 @@
 e final 
+Provider%3C
 HttpRequ
@@ -552,32 +552,33 @@
 tpRequestHandler
+%3E
  httpRequestHand
@@ -634,16 +634,25 @@
 Creator(
+Provider%3C
 HttpRequ
@@ -661,16 +661,17 @@
 tHandler
+%3E
  httpReq
@@ -851,16 +851,22 @@
 Handler.
+get().
 createAc
@@ -985,16 +985,22 @@
 Handler.
+get().
 wrapActi

Break circular dependency in HttpRequestHandlerActionCreator