【24h】

Recommending Framework Extension Examples

机译:推荐框架扩展示例

获取原文

摘要

The use of software frameworks enables the delivery of common functionality but with significantly less effort than when developing from scratch. To meet application specific requirements, the behavior of a framework needs to be customized via extension points. A common way of customizing framework behavior is by passing a framework related object as an argument to an API call. Such an object can be created by subclassing an existing framework class or interface, or by directly customizing an existing framework object. However, to do this effectively requires developers to have extensive knowledge of the framework's extension points and their interactions. To aid the developers in this regard, we propose and evaluate a graph mining approach for extension point management. Specifically, we propose a taxonomy of extension patterns to categorize the various ways an extension point has been used in the code examples. Our approach mines a large amount of code examples to discover all extension points and patterns for each framework class. Given a framework class that is being used, our approach aids the developer by following a two-step recommendation process. First, it recommends all the extension points that are available in the class. Once the developer chooses an extension point, our approach then discovers all of its usage patterns and recommends the best code examples for each pattern. Using five frameworks, we evaluate the performance of our two-step recommendation, in terms of precision, recall, and F-measure. We also report several statistics related to framework extension points.
机译:软件框架的使用使得能够提供共同的功能,但努力明显较低,而不是从头开始发展。为了满足应用程序特定要求,需要通过扩展点定制框架的行为。自定义框架行为的常用方式是通过将框架相关的对象传递为API调用的参数。可以通过对现有框架类或界面进行分类,或者通过直接自定义现有框架对象来创建这样的对象。但是,要有效地完成开发人员对框架的扩展点及其互动具有广泛的了解。为了帮助开发商在这方面,我们提出并评估了扩展点管理的图形挖掘方法。具体地,我们提出了扩展模式的分类,以对代码示例中使用的扩展点进行分类。我们的方法挖掘了大量代码示例,以发现每个框架类的所有扩展点和模式。考虑到正在使用的框架类,我们的方法通过以下两步推荐过程辅助开发人员。首先,它建议在类中提供的所有扩展点。一旦开发人员选择扩展点,我们的方法就会发现其所有使用模式,并为每个模式推荐最佳代码示例。使用五个框架,我们评估了我们两步推荐的性能,以精确,召回和F测量。我们还报告了与框架扩展点有关的几个统计数据。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号