Groovy package templates: supporting reuse and runtime adaption of class hierarchies

  • Authors:
  • Eyvind W. Axelsen;Stein Krogdahl

  • Affiliations:
  • University of Oslo, Oslo, Norway;University of Oslo, Oslo, Norway

  • Venue:
  • DLS '09 Proceedings of the 5th symposium on Dynamic languages
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show how package templates, a modularization mechanism originally developed for statically typed languages like Java and C#, can be applied to and implemented in a dynamic language like Groovy, by using the language's capabilities for meta-programming. We then consider a set of examples and discuss dynamic PT from the viewpoints of code modularization and reuse, and dynamic adaption of classes at runtime.