Package net.officefloor.web
Class InterceptFunction
- java.lang.Object
-
- net.officefloor.web.InterceptFunction
-
- All Implemented Interfaces:
ManagedFunction<None,None>
,ManagedFunctionFactory<None,None>
public class InterceptFunction extends java.lang.Object implements ManagedFunctionFactory<None,None>, ManagedFunction<None,None>
ManagedFunction
to trigger the interception before routing.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description InterceptFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunction<None,None>
createManagedFunction()
Creates theManagedFunction
.void
execute(ManagedFunctionContext<None,None> context)
Executes the function.
-
-
-
Method Detail
-
createManagedFunction
public ManagedFunction<None,None> createManagedFunction() throws java.lang.Throwable
Description copied from interface:ManagedFunctionFactory
Creates theManagedFunction
.- Specified by:
createManagedFunction
in interfaceManagedFunctionFactory<None,None>
- Returns:
ManagedFunction
.- Throws:
java.lang.Throwable
- If fails to create theManagedFunction
.
-
execute
public void execute(ManagedFunctionContext<None,None> context) throws java.lang.Throwable
Description copied from interface:ManagedFunction
Executes the function.- Specified by:
execute
in interfaceManagedFunction<None,None>
- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-