Skip to main content

Annotation Framework Validation Using Domain Models

  • Conference paper
Model Driven Architecture – Foundations and Applications (ECMDA-FA 2008)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 5095))

Abstract

Frameworks and libraries that use annotations are becoming popular. However, there is not enough software engineering support for annotation development. In particular, the validation of constraints in the use of annotations requires further support. In this paper we postulate that annotation frameworks are a projection of the domain model into a programming language model. Using this idea, we have developed a tool that allows the annotation programmer to specify, and then validate the constraints of the annotation framework regarding a given annotated application using a domain model. To validate our approach to the validation of constraints using models, we apply it to the Fraclet annotation framework and compare it to the previous implementation.

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 99.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.00
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. OMG Unified Modelling Language Infrastructure (OMG UML) V.2.1.2 (November 2004), http://www.omg.org/spec/UML/2.1.2/Infrastructure/PDF

  2. Barais, O.: SpoonEMF, une brique logicielle pour l’utilisation de l’IDM dans le cadre de la réingénierie de programmes Java5. In: Journées sur l’Inénierie Dirigée par les Modéles (IDM) (June 2006) Poster

    Google Scholar 

  3. Bruneton, E., Coupaye, T., Leclercq, M., Quéma, V., Stefani, J.-B.: The fractal component model and its support in java: Experiences with auto-adaptive and reconfigurable systems. Softw. Pract. Exper. 36(11-12), 1257–1284 (2006)

    Article  Google Scholar 

  4. Cepa, V., Kloppenburg, S.: Representing Explicit Attributes in UML. In: 7th International Workshop on Aspect-Oriented Modeling (AOM) (2005)

    Google Scholar 

  5. Cepa, V., Mezini, M.: Declaring and enforcing dependencies between.NET custom attributes. In: Karsai, G., Visser, E. (eds.) GPCE 2004. LNCS, vol. 3286, pp. 283–297. Springer, Heidelberg (2004)

    Google Scholar 

  6. Cisterino, A., Cazzola, W., Colombo, D.: Metadata-driven library design. In: Proceedings of Library Centric Software Development Workshop (October 2005)

    Google Scholar 

  7. Eichberg, M., Schäfer, T., Mezini, M.: Using Annotations to Check Structural Properties of Classes. In: Cerioli, M. (ed.) FASE 2005. LNCS, vol. 3442, pp. 237–252. Springer, Heidelberg (2005)

    Google Scholar 

  8. Evans, D., Guttag, J., Horning, J., Tan, Y.M.: A tool for using specifications to check code. In: Proceedings of the ACM SIGSOFT 1994 Symposium on the Foundations of Software Engineering, pp. 87–96 (1994)

    Google Scholar 

  9. Evans, D., Larochelle, D.: Improving security using extensible lightweight static analysis. IEEE Software 19(1), 42–51 (2002)

    Article  Google Scholar 

  10. Gosling, J., Joy, B., Steele, G., Bracha, G.: The Java Language Specification, 3rd edn. Addison-Wesley, Reading (2005)

    Google Scholar 

  11. Hedin, G.: Attribute extensions - a technique for enforcing programming conventions. Nord. J. Comput 4(1), 93–122 (1997)

    MATH  Google Scholar 

  12. Michel, L.D., Keith, M.: Enterprise JavaBeans, Version 3.0. Sun Microsystems, JSR-220 (May 2006)

    Google Scholar 

  13. Noguera, C., Pawlak, R.: AVal: an extensible attribute-oriented programming validator for java. Journal of Software Maintenance and Evolution (July 2007)

    Google Scholar 

  14. Pawlak, R., Noguera, C., Petitprez, N.: Spoon: Program analysis and transformation in java. Technical Report 5901, INRIA (May 2006)

    Google Scholar 

  15. Rouvoy, R., Pessemier, N., Pawlak, R., Merle, P.: Using attribute-oriented programming to leverage fractal-based developments. In: Proceedings of the 5th International ECOOP Workshop on Fractal Component Model (Fractal 2006), Nantes, France (July 2006)

    Google Scholar 

  16. Wada, H., Suzuki, J.: Modeling turnpike frontend system: A model-driven development framework leveraging UML metamodeling and attribute-oriented programming. In: Bruel, J.-M. (ed.) MoDELS 2005. LNCS, vol. 3844, pp. 584–600. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Ina Schieferdecker Alan Hartman

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Noguera, C., Duchien, L. (2008). Annotation Framework Validation Using Domain Models. In: Schieferdecker, I., Hartman, A. (eds) Model Driven Architecture – Foundations and Applications. ECMDA-FA 2008. Lecture Notes in Computer Science, vol 5095. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-69100-6_4

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-69100-6_4

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-69095-5

  • Online ISBN: 978-3-540-69100-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics