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 MVCController
Procedure
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpringWebMvcProcedure.DependencyKeys
Dependency keys.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>
attributes
Attributes forServletServicer
.protected java.lang.Class<?>
controllerClass
Controller
Class
.protected java.lang.String
controllerMethodName
Name ofController
Method
.
-
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 void
execute(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
Controller
Class
.
-
controllerMethodName
protected final java.lang.String controllerMethodName
Name ofController
Method
.
-
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
-ServletServicer
for theProcedureDispatcherServlet
.controllerClass
-Controller
Class
.controllerMethodName
- Name ofController
Method
.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<SpringWebMvcProcedure.DependencyKeys,None> context) throws java.lang.Throwable
Description copied from interface:ManagedFunction
Executes the function.- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-