Class SpringWebMvcProcedure
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<SpringWebMvcProcedure.DependencyKeys,None>
-
- net.officefloor.spring.webmvc.procedure.SpringWebMvcProcedure
-
- All Implemented Interfaces:
ManagedFunction<SpringWebMvcProcedure.DependencyKeys,None>,ManagedFunctionFactory<SpringWebMvcProcedure.DependencyKeys,None>
public class SpringWebMvcProcedure extends StaticManagedFunction<SpringWebMvcProcedure.DependencyKeys,None>
Spring Web MVCControllerProcedure.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpringWebMvcProcedure.DependencyKeysDependency keys.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>attributesAttributes forServletServicer.protected java.lang.Class<?>controllerClassControllerClass.protected java.lang.StringcontrollerMethodNameName ofControllerMethod.
-
Constructor Summary
Constructors Constructor Description SpringWebMvcProcedure(ServletServicer servletServicer, java.lang.Class<?> controllerClass, java.lang.String controllerMethodName)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ManagedFunctionContext<SpringWebMvcProcedure.DependencyKeys,None> context)Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Field Detail
-
controllerClass
protected final java.lang.Class<?> controllerClass
ControllerClass.
-
controllerMethodName
protected final java.lang.String controllerMethodName
Name ofControllerMethod.
-
attributes
protected java.util.Map<java.lang.String,java.lang.Object> attributes
Attributes forServletServicer. Provided bySpringWebMvcProcedureRegistry.
-
-
Constructor Detail
-
SpringWebMvcProcedure
public SpringWebMvcProcedure(ServletServicer servletServicer, java.lang.Class<?> controllerClass, java.lang.String controllerMethodName)
Instantiate.- Parameters:
servletServicer-ServletServicerfor theProcedureDispatcherServlet.controllerClass-ControllerClass.controllerMethodName- Name ofControllerMethod.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<SpringWebMvcProcedure.DependencyKeys,None> context) throws java.lang.Throwable
Description copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.lang.Throwable- Indicating failure of theManagedFunction.
-
-