嵌入软件意图:轻量级Java模块恢复
Embedding Software Intent: Lightweight Java Module Recovery
AI总结:
本文提出ClassLAR方法,通过类和语言模型恢复Java模块,提升架构恢复效率和准确性。
摘要:
随着越来越多的软件系统达到前所未有的规模,仅依赖代码级别的抽象变得不切实际。虽然架构抽象提供了一种管理这些系统的手段,但保持其与实际代码的一致性一直存在问题。Java平台模块系统(JPMS)在Java 9中引入,通过在语言层面启用显式模块规范来解决这一限制。JPMS通过改进封装和在Java项目中直接指定真实架构来增强架构实现。尽管许多项目是用Java编写的,但将现有单体项目模块化为JPMS模块仍然是一个开放性挑战,因为现有的架构恢复技术在模块恢复方面效率低下。为了解决这一挑战,本文提出了ClassLAR(基于类和语言模型的架构恢复),一种新颖、轻量级且高效的 approach,利用完全限定的类名从单体Java系统中恢复Java模块。ClassLAR利用语言模型从包和类名中提取语义信息,捕捉结构和功能意图。在对20个流行Java项目的评估中,ClassLAR在架构级别相似性度量上优于所有最先进的技术,同时执行时间比现有技术快3.99到10.50倍。
英文摘要:
As an increasing number of software systems reach unprecedented scale, relying solely on code-level abstractions is becoming impractical. While architectural abstractions offer a means to manage these systems, maintaining their consistency with the actual code has been problematic. The Java Platform Module System (JPMS), introduced in Java 9, addresses this limitation by enabling explicit module specification at the language level. JPMS enhances architectural implementation through improved encapsulation and direct specification of ground-truth architectures within Java projects. Although many projects are written in Java, modularizing existing monolithic projects to JPMS modules is an open challenge due to ineffective module recovery by existing architecture recovery techniques. To address this challenge, this paper presents ClassLAR (Class-and Language model-based Architectural Recovery), a novel, lightweight, and efficient approach that recovers Java modules from monolithic Java systems using fully-qualified class names. ClassLAR leverages language models to extract semantic information from package and class names, capturing both structural and functional intent. In evaluations across 20 popular Java projects, ClassLAR outperformed all state-of-the-art techniques in architectural-level similarity metrics while achieving execution times that were 3.99 to 10.50 times faster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。