Orthogonal persistence in Java supported by aspect- oriented programming and reflection


Autoria(s): Pereira, Rui Humberto; Perez-Schofield, J. Baltasar García
Data(s)

01/06/2016

01/06/2016

2011

Resumo

The persistence concern implemented as an aspect has been studied since the appearance of the Aspect-Oriented paradigm. Frequently, persistence is given as an example that can be aspectized, but until today no real world solution has applied that paradigm. Such solution should be able to enhance the programmer productivity and make the application less prone to errors. To test the viability of that concept, in a previous study we developed a prototype that implements Orthogonal Persistence as an aspect. This first version of the prototype was already fully functional with all Java types including arrays. In this work the results of our new research to overcome some limitations that we have identified on the data type abstraction and transparency in the prototype are presented. One of our goals was to avoid the Java standard idiom for genericity, based on casts, type tests and subtyping. Moreover, we also find the need to introduce some dynamic data type abilities. We consider that the Reflection is the solution to those issues. To achieve that, we have extended our prototype with a new static weaver that preprocesses the application source code in order to introduce changes to the normal behavior of the Java compiler with a new generated reflective code.

Identificador

Pereira R & Perez-Schofield J. Orthogonal Persistence in Java supported by Aspect-Oriented Programming and Reflection In CISTI'2011 - 6ª Conferencia Ibérica de Sistemas y Tecnologías de Información, Chaves, 2011

978-1-4577-1487-0

http://hdl.handle.net/10400.22/8273

Idioma(s)

eng

Publicador

IEEE

Direitos

restrictedAccess

Palavras-Chave #Aspect-oriented programming #Java #Program compilers
Tipo

article