Package com.orchestranetworks.rest.util
Interface ProcedureUtility
-
public interface ProcedureUtilityThis class easesProcedureexecution through automatic pre-configuration.The provided
Procedures will run against aProcedureContextfed with settings coming from the REST Toolkit JAX-RS components. Those pre-configurations are settled before executing the incomingProcedure, allowing their override.- Since:
- 6.0.0
- See Also:
SessionContext.getProcedureUtility()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcedureResultexecute(Procedure aProcedure, AdaptationHome aDataspace)Executes the givenProcedureagainst the provided dataspace.
-
-
-
Method Detail
-
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
-
-