Interface ManagedFunctionProcedureSource
-
- All Superinterfaces:
ProcedureSource
- All Known Implementing Classes:
FilterProcedureSource
,JaxRsProcedureSource
,ServletProcedureSource
,SpringWebFluxProcedureSource
,SpringWebMvcProcedureSource
public interface ManagedFunctionProcedureSource extends ProcedureSource
ProcedureSource
that enables full ability to build theManagedFunction
.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 byMethod
instances. ExtendingManagedFunctionProcedureSource
rather thanProcedureSource
enables taking full control of building theManagedFunction
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
loadManagedFunction(ProcedureManagedFunctionContext context)
Loads theManagedFunction
for theProcedure
.default java.lang.reflect.Method
loadMethod(ProcedureMethodContext context)
Loads theMethod
for 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 theManagedFunction
for 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:ProcedureSource
Loads theMethod
for theProcedure
.- Specified by:
loadMethod
in interfaceProcedureSource
- Parameters:
context
-ProcedureMethodContext
.- Returns:
Method
for theProcedureSource
.- Throws:
java.lang.IllegalStateException
-
-