Interface ProcedureSource
-
- All Known Subinterfaces:
ManagedFunctionProcedureSource
- All Known Implementing Classes:
ClassProcedureSource
,FilterProcedureSource
,JaxRsProcedureSource
,ManualProcedureSourceServiceFactory
,ServletProcedureSource
,SpringWebFluxProcedureSource
,SpringWebMvcProcedureSource
public interface ProcedureSource
Source providing aProcedure
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getSourceName()
Name of this source.void
listProcedures(ProcedureListContext context)
Provides the availableProcedure
instances for the resource.java.lang.reflect.Method
loadMethod(ProcedureMethodContext context)
Loads theMethod
for 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
Class
names 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 availableProcedure
instances for the resource.- Parameters:
context
-ProcedureListContext
.- Throws:
java.lang.Exception
- If fails to listProcedure
instances.
-
loadMethod
java.lang.reflect.Method loadMethod(ProcedureMethodContext context) throws java.lang.Exception
Loads theMethod
for theProcedure
.- Parameters:
context
-ProcedureMethodContext
.- Returns:
Method
for theProcedureSource
.- Throws:
java.lang.Exception
- If fails to load the method.
-
-