The
RhinoEngine
class acts as a global engine for executing JavaScript codes using Mozilla Rhino. Each engine instance associates a scope and a caching manager.
During the class initialization time, it creates a static global scope, which will be cloned upon request. This also has a constructor which accepts class object itself as a parameter. So, it allows you to keep customised versions of RhinoEngine instances.
It also has several util methods to register hostobjects, methods, properties with the engine's scope.