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 MVC
Controller Procedure.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDependency keys. -
Field Summary
FieldsModifier and TypeFieldDescriptionAttributes forServletServicer.protected final Class<?>ControllerClass.protected final StringName ofControllerMethod. -
Constructor Summary
ConstructorsConstructorDescriptionSpringWebMvcProcedure(ServletServicer servletServicer, Class<?> controllerClass, String controllerMethodName) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the function.Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
Field Details
-
controllerClass
ControllerClass. -
controllerMethodName
Name ofControllerMethod. -
attributes
Attributes forServletServicer. Provided bySpringWebMvcProcedureRegistry.
-
-
Constructor Details
-
SpringWebMvcProcedure
public SpringWebMvcProcedure(ServletServicer servletServicer, Class<?> controllerClass, String controllerMethodName) Instantiate.- Parameters:
servletServicer-ServletServicerfor theProcedureDispatcherServlet.controllerClass-ControllerClass.controllerMethodName- Name ofControllerMethod.
-
-
Method Details
-
execute
public void execute(ManagedFunctionContext<SpringWebMvcProcedure.DependencyKeys, None> context) throws ThrowableDescription copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
Throwable- Indicating failure of theManagedFunction.
-