Package org.rapidcontext.core.js
Class JsCompileInterceptor
java.lang.Object
org.rapidcontext.core.proc.Interceptor
org.rapidcontext.core.js.JsCompileInterceptor
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 Summary
ConstructorsConstructorDescriptionJsCompileInterceptor(Interceptor parent) Creates a new JavaScript compile interceptor. - 
Method Summary
Modifier and TypeMethodDescriptionvoidreserve(CallContext cx, Procedure proc) Reserves all adapter connections needed for executing the specified procedure.Methods inherited from class org.rapidcontext.core.proc.Interceptor
call, getParent, releaseAll 
- 
Constructor Details
- 
JsCompileInterceptor
Creates a new JavaScript compile interceptor.- Parameters:
 parent- the parent interceptor
 
 - 
 - 
Method Details
- 
reserve
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:
 reservein classInterceptor- Parameters:
 cx- the procedure contextproc- the procedure definition- Throws:
 ProcedureException- if the connections couldn't be reserved
 
 -