Inference-based Detection of Architectural Violations in MVC2

Shinpei Hayashi, Fumiki Minami, Motoshi Saeki

2017

Abstract

Utilizing software architecture patterns is important for reducing maintenance costs. However, maintaining code according to the constraints defined by the architecture patterns is time-consuming work. As described herein, we propose a technique to detect code fragments that are incompliant to the architecture as fine-grained architectural violations. For this technique, the dependence graph among code fragments extracted from the source code and the inference rules according to the architecture are the inputs. A set of candidate components to which a code fragment can be affiliated is attached to each node of the graph and is updated step-by-step. The inference rules express the components’ responsibilities and dependency constraints. They remove candidate components of each node that do not satisfy the constraints from the current estimated state of the surrounding code fragment. If the current result does not include the current component, then it is detected as a violation. By defining inference rules for MVC2 architecture and applying the technique to web applications using Play Framework, we obtained accurate detection results.

Download


Paper Citation


in Harvard Style

Hayashi S., Minami F. and Saeki M. (2017). Inference-based Detection of Architectural Violations in MVC2 . In Proceedings of the 12th International Conference on Software Technologies - Volume 1: ICSOFT, ISBN 978-989-758-262-2, pages 394-401. DOI: 10.5220/0006465103940401


in Bibtex Style

@conference{icsoft17,
author={Shinpei Hayashi and Fumiki Minami and Motoshi Saeki},
title={Inference-based Detection of Architectural Violations in MVC2},
booktitle={Proceedings of the 12th International Conference on Software Technologies - Volume 1: ICSOFT,},
year={2017},
pages={394-401},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006465103940401},
isbn={978-989-758-262-2},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 12th International Conference on Software Technologies - Volume 1: ICSOFT,
TI - Inference-based Detection of Architectural Violations in MVC2
SN - 978-989-758-262-2
AU - Hayashi S.
AU - Minami F.
AU - Saeki M.
PY - 2017
SP - 394
EP - 401
DO - 10.5220/0006465103940401