Interface ManagedFunctionProcedureSource
- All Superinterfaces:
ProcedureSource
- All Known Implementing Classes:
FilterProcedureSource,JaxRsProcedureSource,ServletProcedureSource,SpringWebFluxProcedureSource,SpringWebMvcProcedureSource,ThymeleafProcedureSource
ProcedureSource that enables full ability to build the
ManagedFunction.
In majority of cases, providing a Method is adequate for running on
the JVM. However, there are script engines and other executions that are not
represented by Method instances. Extending
ManagedFunctionProcedureSource rather than ProcedureSource
enables taking full control of building the ManagedFunction.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidLoads theManagedFunctionfor theProcedure.default MethodloadMethod(ProcedureMethodContext context) Methods inherited from interface net.officefloor.activity.procedure.spi.ProcedureSource
getSourceName, listProcedures
-
Method Details
-
loadManagedFunction
Loads theManagedFunctionfor theProcedure.- Parameters:
context-ProcedureManagedFunctionContext.- Throws:
Exception- If fails to load theManagedFunction.
-
loadMethod
Description copied from interface:ProcedureSource- Specified by:
loadMethodin interfaceProcedureSource- Parameters:
context-ProcedureMethodContext.- Returns:
Methodfor theProcedureSource.- Throws:
IllegalStateException
-