Class DefaultInterceptor

java.lang.Object
org.rapidcontext.core.proc.Interceptor
org.rapidcontext.core.proc.DefaultInterceptor

@Deprecated(forRemoval=true) public class DefaultInterceptor extends Interceptor
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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new default interceptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    call(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.
    void
    releaseAll(CallContext cx, boolean commit)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Releases all reserved adapter connections.
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void reserve(CallContext cx, Procedure proc) throws ProcedureException
      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:
      reserve in class Interceptor
      Parameters:
      cx - the procedure context
      proc - the procedure definition
      Throws:
      ProcedureException - if the connections couldn't be reserved
      See Also:
    • releaseAll

      public void releaseAll(CallContext cx, boolean commit)
      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:
      releaseAll in class Interceptor
      Parameters:
      cx - the procedure context
      commit - the commit (or rollback) flag
      See Also:
    • call

      public Object call(CallContext cx, Procedure proc, Bindings bindings) throws ProcedureException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calls a procedure with the specified bindings.
      Overrides:
      call in class Interceptor
      Parameters:
      cx - the procedure context
      proc - the procedure definition
      bindings - 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: