Create custom extensions

Build your own extension to add analysis support for a technology, import results from an external analyzer, or share an add-on with other CAST Imaging users
Updated

Overview

Extensions add analysis and measurement capabilities to CAST Imaging, both for technologies that are not supported out of the box and for technologies that are. Most extensions are official extensions published by CAST, but you can also create your own custom extension. This section explains how to build, package and publish one.

Types of extension

Type What it does How to build it
SDK extension Adds support for a framework on top of an existing CAST analyzer (for example .NET, JEE or the Universal Analyzer), or on top of another analyzer delivered as an extension Extension SDK
Universal Analyzer extension Adds support for a language that no CAST analyzer or official extension covers, by describing the language to the Universal Analyzer Universal Analyzer language package
Universal Importer extension Imports objects and links produced by an external analyzer, in .uax format Universal Importer
Add-on Shares any other file that enhances CAST Imaging, such as a script, a custom assessment model or a set of rules Package and publish an extension

Official extensions use the same mechanisms. For example, the Dapper extension builds on the .NET analyzer with the Extension SDK, and the PHP extension is a Universal Analyzer extension.

Contributor types

Every extension on CAST Extend has one of three contributor types. The type determines the prefix of the extension id, who can publish it and whether CAST supports it:

Contributor type Extension id Who can publish Support
CAST Product com.castsoftware.<name> Designated members of CAST R&D only Supported by CAST, except for alpha releases
CAST Labs com.castsoftware.labs.<name> CAST R&D and Consulting staff whose CAST Extend login has the CAST Labs contributor type Not officially supported
User Community com.castsoftware.uc.<name> Any CAST Extend user Not officially supported - contact the extension author

Use User Community for your custom extensions unless you are a member of CAST staff with a reason to use CAST Labs. Every CAST Extend login can publish User Community extensions. To publish another type, request that the additional contributor type is granted to your login.

The contributor type must be consistent in three places: the name of the folder that contains the extension, the id of the extension and the authors element of its description file.

User Community and CAST Labs extensions are provided as is. By default, CAST Imaging does not install them automatically: see Using Community/Labs extensions.

Release types

The version number of an extension shows its release type. CAST uses the following release types for official extensions:

Release type Version example Description
Alpha 1.1.0-alpha1 Limited internal testing, may be unstable or incomplete. Not supported
Beta 1.1.0-beta1 Feature complete but may contain known or unknown bugs. Supported
Functional release 1.2.0-funcrel Delivers new features as early as possible. Bug fixes arrive in the next release, together with new features. Supported
Long term support (LTS) 1.2.0 A functional release that has been field-tested and validated. Bug fixes arrive in service packs with no functional change. Supported

User Community extensions do not follow this release process, so give them a plain version number such as 1.3.0. See Write the extension description file.

Create and publish a custom extension

To use a custom extension in your own CAST Imaging installation without publishing it, see Deploy custom extensions.