Skip to main content

Design Pattern Support Based on the Source Code Annotations and Feature Models

  • Conference paper
SOFSEM 2012: Theory and Practice of Computer Science (SOFSEM 2012)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7147))

Abstract

Nowadays there exist many approaches to support design pattern instantiation, evolution, etc., but most of the approaches focus mainly at the design level (i.e. model). By the transition to the source code level the pattern instances become almost invisible in the huge amount of source code lines. The goal of this paper is to present our method supporting design pattern instantiation, evolution and identification in the source code. The method is based on source code annotations and feature models of individual patterns. The method does not require a manual annotation of the source code by a human, instead the method works on the idea of architectural and design information propagation and expansion from higher levels of abstraction (i.e. models) into the source code. In this paper we also present a method defining how to connect the necessary knowledge to the model and the source code.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Gamma, E., et al.: Design Patterns, Elements of Reusable Object-Oriented Software. Addison-Wesley professional computing series (1995)

    Google Scholar 

  2. Havlice, Z., et al.: Knowledge Based Software Engineering. In: Computer Science and Technology Research Survey, elfa, Košice, pp. 1–10 (2009)

    Google Scholar 

  3. Fülleborn, A., Meffert, K., Heisel, M.: Problem-Oriented Documentation of Design Patterns. In: Chechik, M., Wirsing, M. (eds.) FASE 2009. LNCS, vol. 5503, pp. 294–308. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  4. Kampffmeyer, H., Zschaler, S.: Finding the Pattern You Need: The Design Pattern Intent Ontology. In: Engels, G., Opdyke, B., Schmidt, D.C., Weil, F. (eds.) MODELS 2007. LNCS, vol. 4735, pp. 211–225. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  5. Debnath, N.C., et al.: Defining Patterns Using UML Profiles. In: IEEE International Conference on Computer Systems and Applications, Washington, pp. 1147–1150 (2006)

    Google Scholar 

  6. Marko, V.: Template Based, Designer Driven Design Pattern Instantiation Support. In: Benczúr, A.A., Demetrovics, J., Gottlob, G. (eds.) ADBIS 2004. LNCS, vol. 3255, pp. 144–158. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  7. Dong, J., Yang, S., Zhang, K.: A model transformation approach for design pattern evolutions. In: ECBS 2006, pp. 80–92. IEEE Computer Society, Washington, DC (2006)

    Google Scholar 

  8. Java Specification Request: Common Annotations for the Java Platform, http://www.jcp.org/en/jsr/detail?id=250

  9. Rasool, G., Philippowa, I., Mädera, P.: Design pattern recovery based on annotations. Advances in Engineering Software, 519–526 (2010)

    Google Scholar 

  10. Sabo, M., Porubän, J.: Preserving Design Patterns using Source Code Annotations. Journal of Computer Science and Control Systems, 53–56 (2009)

    Google Scholar 

  11. Meffert, K.: Supporting Design Patterns with Annotations. In: Proceedings of the 13th Annual IEEE International Symposium and Workshop on Engineering of Computer Based System, ECBS 2006, pp. 437–445. IEEE Computer Society, Washington, DC (2006)

    Google Scholar 

  12. Kirasić, D., Basch, D.: Ontology-Based Design Pattern Recognition. In: Lovrek, I., Howlett, R.J., Jain, L.C. (eds.) KES 2008, Part I. LNCS (LNAI), vol. 5177, pp. 384–393. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  13. Vranić, V., Šnirc, J.: Integrating Feature Modeling into UML. In: NODe 2006, GSEM. Lecture Notes in Informatics, vol. P-88, pp. 3–15. Gesellschaft fur Informatik, Bonn (2006)

    Google Scholar 

  14. Kajsa, P., Majtás, L.: Design Patterns Instantiation Based on Semantics and Model Transformations. In: van Leeuwen, J., Muscholl, A., Peleg, D., Pokorný, J., Rumpe, B. (eds.) SOFSEM 2010. LNCS, vol. 5901, pp. 540–551. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kajsa, P., Návrat, P. (2012). Design Pattern Support Based on the Source Code Annotations and Feature Models. In: Bieliková, M., Friedrich, G., Gottlob, G., Katzenbeisser, S., Turán, G. (eds) SOFSEM 2012: Theory and Practice of Computer Science. SOFSEM 2012. Lecture Notes in Computer Science, vol 7147. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-27660-6_38

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-27660-6_38

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-27659-0

  • Online ISBN: 978-3-642-27660-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics