Package play.http
Class DefaultActionCreator
java.lang.Object
play.http.DefaultActionCreator
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateAction(Http.Request request, Method actionMethod) Call to create the root Action for a Java controller method call.
-
Constructor Details
-
DefaultActionCreator
@Inject public DefaultActionCreator()
-
-
Method Details
-
createAction
Description copied from interface:ActionCreatorCall 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:
createActionin 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.
-