Skip navigation links

Package com.prosyst.mprm.backend.script.plugin

This package provides API for registering Script Plugins defining custom script commands.

See: Description

Package com.prosyst.mprm.backend.script.plugin Description

This package provides API for registering Script Plugins defining custom script commands. These commands can be written in script procedures and executed in operations along with the mPRM defined script commands. Applications should implement the ScriptPlugin interface and register it in the ParserPluginService service, which can be accessed as a service on the backend framework. It is accessible to the other bundles through methods defined by the OSGi Framework specification.

Example :

import com.prosyst.mprm.backend.sciprt.*;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;

.....

  public ParserPluginService getParserPluginService(BundleContext context) {
    ParserPluginService pps = null;
    ServiceReference ppsRef = context.getServiceReference(ParserPluginService.class.getName());
    if (ppsRef != null) {
      pps = (ParserPluginService)context.getService(ppsRef);
    }
    return pps;
  }

.....

Note: See the documentation for detailed explanations of how to write script plugins.

Skip navigation links

Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.