Package com.orchestranetworks.rest.util
Interface ProcedureUtility
public interface ProcedureUtility
This class eases
Procedure execution through automatic pre-configuration.
The provided Procedures will run against a ProcedureContext
fed with settings coming from the REST Toolkit JAX-RS components.
Those pre-configurations are settled before executing the incoming Procedure,
allowing their override.
- Since:
- 6.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexecute(Procedure aProcedure, AdaptationHome aDataspace) Executes the givenProcedureagainst the provided dataspace.
-
Method Details
-
execute
ProcedureResult execute(Procedure aProcedure, AdaptationHome aDataspace) throws IllegalArgumentException Executes the givenProcedureagainst the provided dataspace.The
ProcedureContextsupplied to theProcedurewill be pre-configured according to the REST Toolkit JAX-RS components (i.e.SessionContext).- Parameters:
aProcedure- the procedure to executeaDataspace- the dataspace against which the procedure should be run- Returns:
- the result of the execution (whether it has thrown an exception, except for the underlying cases).
- Throws:
IllegalArgumentException- if the providedProcedureisnull, if the provided dataspace isnull
-