Thank you for being a valued client of CM First Group. If you have any technical issues or concerns, please open a ticket on support.cmfirstgroup.com, email CM First technical support at support@cmfirstgroup.com or call us on our 24/7 customer hotline at +1 (512) 623-7586.

Follow

CM Meta Analytics Plugins

The CM Meta Analytics engine supports plugins in its architecture. Plugins are able to contribute functionality such as additional methods to detect input files, and data structures to store additional information.

Plugins are automatically loaded at service start time. They should be located in a directory named plugins under the CM Meta Analytics program directory. Each plugin is a Java JAR file utilizing the JSPF plugin framework. The source code scanner should be stopped while installing or uninstalling plugins.

A plugin project must reference the following JAR files that are present in the lib directory under CM Meta Analytics:

  • CMMA-API.jar
  • hibernate3.jar
  • hibernate-jpa-2.0-api-1.0.1.Final.jar
  • jspf.core-1.0.2.jar

In addition, in order to run unit tests against the CM Meta Analytics data store, the file SourceScannerInteg.jar can be added to the runtime class path. However, plugins should not link directly against SourceScannerInteg.jar.

Plugins can implement the following interfaces:

IFileSensor - used to allow the source scanner to detect different types of manifest files placed within the scan directory.
IHibernateConfig - used to allow the plugin to define additional Hibernate domain classes to be stored in the source scanner's data store.

Implementations of the following plugin interfaces are available from the environment:

IJobStore - resolves to a test instance of the source scanner data store (for unit testing purposes.)
IScanTypeFactory - resolves to a factory which produces the source code scanner type configuration objects.

For more information on how to use the plugin interfaces, see the Javadoc documentation for CMMA- API.

back to top

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk