Package play.http

Interface ActionCreator

All Known Implementing Classes:
DefaultActionCreator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ActionCreator
An interface for creating Java actions from Java methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    createAction(Http.Request request, Method actionMethod)
    Call to create the root Action for a Java controller method call.
  • Method Details

    • createAction

      Action createAction(Http.Request request, Method actionMethod)
      Call to create the root Action for a Java controller method call.

      The request and actionMethod values are passed for information. Implementations of this method should create an instance of Action that invokes the injected action delegate.

      Parameters:
      request - The HTTP Request
      actionMethod - The action method containing the user code for this Action.
      Returns:
      The default implementation returns a raw Action calling the method.