public interface ProcedureUtility
Procedure
execution through automatic pre-configuration.
The provided Procedure
s 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.
SessionContext.getProcedureUtility()
Modifier and Type | Method and Description |
---|---|
ProcedureResult |
execute(Procedure aProcedure,
AdaptationHome aDataspace)
Executes the given
Procedure against the provided dataspace. |
ProcedureResult execute(Procedure aProcedure, AdaptationHome aDataspace) throws IllegalArgumentException
Procedure
against the provided dataspace.
The ProcedureContext
supplied to the Procedure
will be pre-configured
according to the REST Toolkit JAX-RS components (i.e. SessionContext
).
aProcedure
- the procedure to executeaDataspace
- the dataspace against which the procedure should be runIllegalArgumentException
- if the provided Procedure
is null
,
if the provided dataspace is null