18.04.2013 Views

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3<br />

An application reconfiguration<br />

framework<br />

Chapter 1 i<strong>de</strong>ntified the probl<strong>em</strong> of automatic application configuration, along with the con-<br />

cept of pattern in a configuration file, whereas Chapter 2 studied the existing tools and tech-<br />

nologies that can help to mitigate the probl<strong>em</strong>. Using that knowledge, this chapter presents the<br />

framework for automatic application configuration, the major contribution of this dissertation.<br />

In truth, the proposed framework reconfigures applications (possibly fresh installations or<br />

<strong>de</strong>ployments of an application) instead of configuring th<strong>em</strong> at <strong>de</strong>ployment time, but for the<br />

sake of clarity, the probl<strong>em</strong> will be addressed in the r<strong>em</strong>ain<strong>de</strong>r of the dissertation as the auto-<br />

matic configuration of applications. The proposed framework requires three steps to config-<br />

ure an application automatically: conversion from original to generic syntax, file modification<br />

and conversion back to original syntax. Only the first and third belong to the scope of this<br />

work. The configuration resorts to the lexical and syntatic analysis of the configuration file and<br />

subsequent production of a data structure which is equivalent to the original file. After the<br />

data-structure is properly modified, it is reconverted back to the original file form.<br />

We start by i<strong>de</strong>ntifying the functional and non-functional requir<strong>em</strong>ents of the tool in Sec-<br />

tion 3.1, Section 3.2 provi<strong>de</strong>s a broad view over the solution proposal, Sections 3.3 and 3.4 <strong>de</strong>tail<br />

the required components in each step and their interfaces, Section 3.5 approaches the file mod-<br />

ification part by proposing some ways to modify the intermediate file in generic syntax and<br />

providing some information about the generic syntax and Section 3.6 <strong>de</strong>als with the support<br />

for file formats not recognizable by the framework.<br />

21

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

Saved successfully!

Ooh no, something went wrong!