FESI.jslib
Interface JSExtension
- public abstract interface JSExtension
Interface used to describe EcmaScript extensions with the
jslib package. An extension must implements this interface
to be loadable. A new instance of the extension is created
by FESI at load time.
As there can be multiple extension (possibly in multiple
threads) in a single project, an extension should not have
shared static properties (unless protected and to share
information between various instances).
initializeExtension
public void initializeExtension(JSGlobalObject globalObject)
throws JSException
- Called by the FESI interpreter the first time the extension
is loaded in the evaluator.
- Parameters:
globalObject
- The global object of this evaluator- Throws:
- JSException - To be thrown in case of error