See: Description
| Interface | Description |
|---|---|
| ParserPluginService |
This service can be used by applications, that want to define custom script commands.
|
| ScriptPlugin |
Applications that define custom script commands should implement this
interface that is meant to give semantics to their custom commands.
|
| Class | Description |
|---|---|
| Token |
This class represents a token from the input of management procedures.
|
| Exception | Description |
|---|---|
| InvalidPluginException |
Thrown to indicate error in script plugin being added.
|
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; } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.