一句话:提出 Xeditor,从部署描述符中挖掘配置耦合规则,并用其校验新增或更新的 XML 配置文件。
在 Java 框架(如 Spring)上构建企业应用时,开发者常用一种名为部署描述符(DD)的 XML 文件来指定组件并配置操作。维护这类 XML 文件困难且耗时:配置语义是领域特定的,但文档通常含糊;现有编译器和程序分析工具又很少检查 XML 文件。为帮助开发者保证 DD 的质量,本文提出 Xeditor 方法。该方法从 DD 中提取配置耦合,即频繁共现的配置,并采用这些耦合规则来验证新创建或更新后的文件。给出的摘要未报告具体实验数据或定量结果,其应用方式是通过推断出的耦合规则对 DD 进行校验。
When building enterprise applications on Java frameworks (e.g., Spring), developers often specify components and configure operations with a special kind of XML files named "deployment descriptors (DD)". Maintaining such XML files is challenging and time-consuming; because (1) the correct configuration semantics is domain-specific but usually vaguely documented, and (2) existing compilers and program analysis tools rarely examine XML files. To help developers ensure the quality of DD, this paper presents a novel approach---Xeditor---that extracts configuration couplings (i.e., frequently co-occurring configurations) from DD, and adopts the coupling rules to validate new or updated files.