Package play.http
Class DefaultActionCreator
- Object
-
- play.http.DefaultActionCreator
-
- All Implemented Interfaces:
ActionCreator
public class DefaultActionCreator extends Object implements ActionCreator
A default implementation of the action creator.To create a custom action creator, extend this class or implement the ActionCreator interface directly.
-
-
Constructor Summary
Constructors Constructor Description DefaultActionCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
createAction(Http.Request request, Method actionMethod)
Call to create the root Action for a Java controller method call.
-
-
-
Method Detail
-
createAction
public Action createAction(Http.Request request, Method actionMethod)
Description copied from interface:ActionCreator
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.
- Specified by:
createAction
in interfaceActionCreator
- Parameters:
request
- The HTTP RequestactionMethod
- The action method containing the user code for this Action.- Returns:
- The default implementation returns a raw Action calling the method.
-
-