skip to main content
10.1145/1636642.1636646acmconferencesArticle/Chapter ViewAbstractPublication PagessplashConference Proceedingsconference-collections
research-article

Toward refactoring in a polyglot world: extending automated refactoring support across Java and XML

Published:19 October 2008Publication History

ABSTRACT

Many automated refactoring tools only work with one programming language. However, most complex programs rely on polyglot programming --- entailing the use of different programming languages, libraries and frameworks. While finding a general solution for extending refactoring across multiple languages is hard, it is simple and possible to support automated refactorings for some common cases that programmers already encounter in their programs today. Supporting those common cases is essential in encouraging programmers to make changes that would increase the understandability and maintainability of their programs.

This paper is a step toward encouraging tool developers to think about supporting multi-language refactorings. We present our tool for supporting multi-language refactorings from studying the interactions between Java and XML configuration files. Our tool extends Rename Refactoring support across three different popular Java frameworks: Struts, Hibernate and Spring.

References

  1. Apache Foundation Struts Framework. http://struts.apache.orgGoogle ScholarGoogle Scholar
  2. Eclipse Foundation. http://eclipse.orgGoogle ScholarGoogle Scholar
  3. Creating a JSP Document http://java.sun.com/javaee/5/docs/tutorial/doc/bnajq.htmlGoogle ScholarGoogle Scholar
  4. Martin Fowler, Kent Beck, John Brandt, William Opdyke, and Don Roberts. Refactoring: Improving the Design of Existing Code. Addison-Wesley Professional, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley Longman, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. IntelliJ IDEA. http://www.jetbrains.com/idea/Google ScholarGoogle Scholar
  7. The Language Toolkit: An API for Automated Refactorings in Eclipse-based IDEs http://www.eclipse.org/articles/Article-LTK/ltk.htmlGoogle ScholarGoogle Scholar
  8. Don Roberts, John Brandt and Ralph Johnson. A Refactoring Tool for Smalltalk. Theor. Pract. Object Syst. 3(4):253263, 1997 Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Don Roberts and Ralph Johnson. Evolving frameworks: A Pattern Language for Developing Object-Oriented Frameworks. In Pattern Languages of Program Design 3. Addison Wesley, 1997.Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. XML Path Language (XPath). http://www.w3.org/TR/xpathGoogle ScholarGoogle Scholar

Index Terms

  1. Toward refactoring in a polyglot world: extending automated refactoring support across Java and XML

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in
            • Published in

              cover image ACM Conferences
              WRT '08: Proceedings of the 2nd Workshop on Refactoring Tools
              October 2008
              50 pages
              ISBN:9781605583396
              DOI:10.1145/1636642

              Copyright © 2008 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 19 October 2008

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • research-article

              Acceptance Rates

              Overall Acceptance Rate9of9submissions,100%

              Upcoming Conference

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader