Package org.rapidcontext.core.proc
Class DefaultInterceptor
java.lang.Object
org.rapidcontext.core.proc.Interceptor
org.rapidcontext.core.proc.DefaultInterceptor
Deprecated, for removal: This API element is subject to removal in a future version.
Implemented in ReserveInterceptor or CallInterceptor
instead.
The default procedure call interceptor. This interceptor provides
the standard implementation for all methods (necessary since it
is the last link in the interceptor chain). All actual procedure
calls will be delegated to the actual procedure implementation,
and resource reservation will be delegated to the call context.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new default interceptor. -
Method Summary
Modifier and TypeMethodDescriptioncall(CallContext cx, Procedure proc, Bindings bindings) Deprecated, for removal: This API element is subject to removal in a future version.Calls a procedure with the specified bindings.voidreleaseAll(CallContext cx, boolean commit) Deprecated, for removal: This API element is subject to removal in a future version.Releases all reserved adapter connections.voidreserve(CallContext cx, Procedure proc) Deprecated, for removal: This API element is subject to removal in a future version.Reserves all adapter connections needed for executing the specified procedure.Methods inherited from class org.rapidcontext.core.proc.Interceptor
getParent
-
Constructor Details
-
DefaultInterceptor
public DefaultInterceptor()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new default interceptor.
-
-
Method Details
-
reserve
Deprecated, for removal: This API element is subject to removal in a future version.Reserves all adapter connections needed for executing the specified procedure. All connections needed by imported procedures will also be reserved recursively.- Overrides:
reservein classInterceptor- Parameters:
cx- the procedure contextproc- the procedure definition- Throws:
ProcedureException- if the connections couldn't be reserved- See Also:
-
releaseAll
Deprecated, for removal: This API element is subject to removal in a future version.Releases all reserved adapter connections. The connections will either be committed or rolled back, depending on the commit flag.- Overrides:
releaseAllin classInterceptor- Parameters:
cx- the procedure contextcommit- the commit (or rollback) flag- See Also:
-
call
Deprecated, for removal: This API element is subject to removal in a future version.Calls a procedure with the specified bindings.- Overrides:
callin classInterceptor- Parameters:
cx- the procedure contextproc- the procedure definitionbindings- the procedure bindings- Returns:
- the result of the call, or null if the call produced no result
- Throws:
ProcedureException- if the call execution caused an error- See Also:
-