Interface ManagedFunctionProcedureSource
-
- All Superinterfaces:
ProcedureSource
- All Known Implementing Classes:
FilterProcedureSource,JaxRsProcedureSource,ServletProcedureSource,SpringWebFluxProcedureSource,SpringWebMvcProcedureSource
public interface ManagedFunctionProcedureSource extends ProcedureSource
ProcedureSourcethat enables full ability to build theManagedFunction.In majority of cases, providing a
Methodis adequate for running on the JVM. However, there are script engines and other executions that are not represented byMethodinstances. ExtendingManagedFunctionProcedureSourcerather thanProcedureSourceenables taking full control of building theManagedFunction.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidloadManagedFunction(ProcedureManagedFunctionContext context)Loads theManagedFunctionfor theProcedure.default java.lang.reflect.MethodloadMethod(ProcedureMethodContext context)Loads theMethodfor theProcedure.-
Methods inherited from interface net.officefloor.activity.procedure.spi.ProcedureSource
getSourceName, listProcedures
-
-
-
-
Method Detail
-
loadManagedFunction
void loadManagedFunction(ProcedureManagedFunctionContext context) throws java.lang.Exception
Loads theManagedFunctionfor theProcedure.- Parameters:
context-ProcedureManagedFunctionContext.- Throws:
java.lang.Exception- If fails to load theManagedFunction.
-
loadMethod
default java.lang.reflect.Method loadMethod(ProcedureMethodContext context) throws java.lang.IllegalStateException
Description copied from interface:ProcedureSourceLoads theMethodfor theProcedure.- Specified by:
loadMethodin interfaceProcedureSource- Parameters:
context-ProcedureMethodContext.- Returns:
Methodfor theProcedureSource.- Throws:
java.lang.IllegalStateException
-
-