Previous Topic

Next Topic

Book Contents

Book Index

OSGi Script Engine Manager Service

Details about the OSGi Script Engine Manager Service.

Overview

The Scripting module provides a service, the OSGi Script Engine Manager service (com.prosyst.mbs.services.scripting.OSGiScriptEngineManager), which can be used by applications to create instances of OSGi Script Engines. It will look in both Java Classpath and installed bundles to find Script Engine Factory for the requested script engine.

An OSGi Script Engine always executes scripts on behalf of a given bundle, that is why all OSGi Script Engine Manager methods for instantiating script engines take an additional bundle argument.

For script engine factories provided from OSGi bundles events are sent from OSGi Script Engine Manager for their appearance/disappearance.

More detailed information on the OSGi Script Engine Manager is provided in the Developer Guide.

Registering Bundle

This service is registered by Scripting Core Bundle.