Interface ProcedureSource
- All Known Subinterfaces:
ManagedFunctionProcedureSource
- All Known Implementing Classes:
ClassProcedureSource,FilterProcedureSource,JaxRsProcedureSource,ServletProcedureSource,SpringWebFluxProcedureSource,SpringWebMvcProcedureSource,ThymeleafProcedureSource
public interface ProcedureSource
Source providing a
Procedure.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionName of this source.voidlistProcedures(ProcedureListContext context) Provides the availableProcedureinstances for the resource.loadMethod(ProcedureMethodContext context)
-
Method Details
-
getSourceName
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
Provides the availableProcedureinstances for the resource.- Parameters:
context-ProcedureListContext.- Throws:
Exception- If fails to listProcedureinstances.
-
loadMethod
- Parameters:
context-ProcedureMethodContext.- Returns:
Methodfor theProcedureSource.- Throws:
Exception- If fails to load the method.
-