|
|
|
Tratamento
de Erros no Desenvolvimento de Componentes de Software Robustos e Reutilizáveis (In
Portuguese)
Alessandro F. Garcia & Cecília M.F. Rubira
|
| Relatório Técnico,
Instituto de Computação, Unicamp, Campinas, Brasil, Maio 1999. |
|
| Abstract |
Reusable software components should incorporate error-handling activities
in order to behave suitably in a great number of situations in spite of errors. Ideally, the components should incorporate error-handling
activities in a structured and non-intrusive manner in such a way that mantain system complexity under
control and make easier the reuse of components. Traditionally, developers have worried with their error
handling only in the later phases of software development, i.e., design and implementation. However, the development of robust and reusable
components is not a trivial task. In this context, Better results might be
achieved if the exceptional situations of each component were considered since the analisys phase. We propose an approach for developing reusable
and robust object-oriented components so that the error-handling activities may be incorporated in a controled and non-intrusive manner
during the fases of analysis, design and implementation. We also propose the definition of the MetaHandler design pattern. The proposed pattern is
based on a meta-level architecture and its goal is twofold: (i) to proportionate clear separation between the normal and error-handling
activities, and (ii) to allow that error-handling management activities be
realized in a transparent way. We show the use of our approach and the proposed pattern by means of a case study. Finally, we summarise the
conclusions of this work and suggest directions for future work. |
|
|
|