Class JsCompileInterceptor

java.lang.Object
org.rapidcontext.core.proc.Interceptor
org.rapidcontext.core.js.JsCompileInterceptor

public class JsCompileInterceptor extends Interceptor
A JavaScript compile procedure call interceptor. This interceptor makes sure that all JavaScript procedures are compiled during the reservation phase before the actual calls.
Version:
1.0
  • Constructor Details

    • JsCompileInterceptor

      public JsCompileInterceptor(Interceptor parent)
      Creates a new JavaScript compile interceptor.
      Parameters:
      parent - the parent interceptor
  • Method Details

    • reserve

      public void reserve(CallContext cx, Procedure proc) throws ProcedureException
      Reserves all adapter connections needed for executing the specified procedure. All connections needed by imported procedures will also be reserved recursively. This method also compiles the JavaScript source code.
      Overrides:
      reserve in class Interceptor
      Parameters:
      cx - the procedure context
      proc - the procedure definition
      Throws:
      ProcedureException - if the connections couldn't be reserved