Class ClassProcedureSource
java.lang.Object
net.officefloor.activity.impl.procedure.ClassProcedureSource
- All Implemented Interfaces:
ProcedureSource
ProcedureSource for Class.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of this source.voidlistProcedures(ProcedureListContext context) Provides the availableProcedureinstances for the resource.loadMethod(ProcedureMethodContext context)
-
Field Details
-
SOURCE_NAME
Source name.- See Also:
-
-
Constructor Details
-
ClassProcedureSource
public ClassProcedureSource()
-
-
Method Details
-
getSourceName
Description copied from interface:ProcedureSourceName 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
- Specified by:
getSourceNamein interfaceProcedureSource- Returns:
- Name of this source.
-
listProcedures
Description copied from interface:ProcedureSourceProvides the availableProcedureinstances for the resource.- Specified by:
listProceduresin interfaceProcedureSource- Parameters:
context-ProcedureListContext.
-
loadMethod
Description copied from interface:ProcedureSource- Specified by:
loadMethodin interfaceProcedureSource- Parameters:
context-ProcedureMethodContext.- Returns:
Methodfor theProcedureSource.- Throws:
Exception- If fails to load the method.
-