Interface ProcedureSource
-
- All Known Subinterfaces:
ManagedFunctionProcedureSource
- All Known Implementing Classes:
ClassProcedureSource,FilterProcedureSource,JaxRsProcedureSource,ManualProcedureSourceServiceFactory,ServletProcedureSource,SpringWebFluxProcedureSource,SpringWebMvcProcedureSource
public interface ProcedureSourceSource providing aProcedure.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetSourceName()Name of this source.voidlistProcedures(ProcedureListContext context)Provides the availableProcedureinstances for the resource.java.lang.reflect.MethodloadMethod(ProcedureMethodContext context)Loads theMethodfor theProcedure.
-
-
-
Method Detail
-
getSourceName
java.lang.String getSourceName()
Name of this source.
Note that this is the name used in configuration to identify this
ProcedureSource. Therefore, it can not change without causing configurations to be updated.The reasons for using this logical name over
Classnames is:- Class names can be quite long
- Class names are not easily readable
- Enables swapping plugins for same logical service name
- Returns:
- Name of this source.
-
listProcedures
void listProcedures(ProcedureListContext context) throws java.lang.Exception
Provides the availableProcedureinstances for the resource.- Parameters:
context-ProcedureListContext.- Throws:
java.lang.Exception- If fails to listProcedureinstances.
-
loadMethod
java.lang.reflect.Method loadMethod(ProcedureMethodContext context) throws java.lang.Exception
Loads theMethodfor theProcedure.- Parameters:
context-ProcedureMethodContext.- Returns:
Methodfor theProcedureSource.- Throws:
java.lang.Exception- If fails to load the method.
-
-