13.06.2014 Views

Automated Formal Static Analysis and Retrieval of Source Code - JKU

Automated Formal Static Analysis and Retrieval of Source Code - JKU

Automated Formal Static Analysis and Retrieval of Source Code - JKU

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

46CHAPTER 3. CODE SEARCH INTEGRATION FACILITY INTO MINDBREEZE ENTERPRISE SEARCH<br />

Figure 3.7: <strong>Code</strong>Search Context Provider Classes<br />

1. a unique category identifier <strong>and</strong> category display name;<br />

2. the description <strong>of</strong> the metadata for each <strong>Code</strong>Search artifact;<br />

3. a graphical icon representing the category in the user interface.<br />

These requirements are solved by deploying on the server a category descriptor file <strong>and</strong> a<br />

category icon file, respectively.<br />

Moreover, we want that the results displayed to the end users to have context specific information.<br />

For this purpose, we have to provide to the Query Service (again by deploying on the server)<br />

an appropriate context provider implementation for the <strong>Code</strong>Search data source.<br />

Deployment is done by the comm<strong>and</strong> line tool mesextension used for the infrastructure<br />

configuration. In was created during the MES development <strong>and</strong> used installing or uninstalling<br />

context or authorization provider plug-ins, category descriptors <strong>and</strong> category icons.<br />

Usage: mesextension [OPTIONS] install|uninstall<br />

3.2.3.1 Deploying the <strong>Code</strong>Search Category Descriptor, Category Icon <strong>and</strong> Context Provider<br />

Deploying the <strong>Code</strong>Search Category Descriptor<br />

A category descriptor is a XML file which contains the unique identifier, the display name <strong>and</strong><br />

descriptions for each artifact for the data source <strong>Code</strong>Search.<br />

A fragment <strong>of</strong> the <strong>Code</strong>Search category descriptor (<strong>Code</strong>SearchCategoryDescriptor.xml)<br />

is listed:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!