TY - GEN
T1 - Pluggable aspect instantiation models
AU - Lorenz, David
AU - Trakhtenberg, Victor
N1 - This research was supported in part by the Israel Science Foundation (ISF) under grant No. 926/08.
PY - 2011
Y1 - 2011
N2 - An aspect encapsulates not only crosscutting behavior, but also crosscutting state. When aspects are stateful, there is a need to specify and control their instantiation. Unfortunately, aspect instantiation is a hard-wired feature in AspectJ. This feature cannot be customized by the application programmer. Specifically, there are six pre-defined instantiation models to choose from, each designated by a keyword: issingleton, perthis, pertarget, percflow, percflowbelow, pertypewithin. In this work, we introduce a new language mechanism and keyword 'perscope' that lets third-parties define custom aspect instantiation models. This new keyword replaces the six existing keywords in AspectJ, and may eliminate the need for introducing future ones.
AB - An aspect encapsulates not only crosscutting behavior, but also crosscutting state. When aspects are stateful, there is a need to specify and control their instantiation. Unfortunately, aspect instantiation is a hard-wired feature in AspectJ. This feature cannot be customized by the application programmer. Specifically, there are six pre-defined instantiation models to choose from, each designated by a keyword: issingleton, perthis, pertarget, percflow, percflowbelow, pertypewithin. In this work, we introduce a new language mechanism and keyword 'perscope' that lets third-parties define custom aspect instantiation models. This new keyword replaces the six existing keywords in AspectJ, and may eliminate the need for introducing future ones.
UR - http://www.scopus.com/inward/record.url?scp=79960133553&partnerID=8YFLogxK
U2 - 10.1007/978-3-642-22045-6_6
DO - 10.1007/978-3-642-22045-6_6
M3 - ???researchoutput.researchoutputtypes.contributiontobookanthology.conference???
AN - SCOPUS:79960133553
SN - 9783642220449
VL - 6708
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 84
EP - 99
BT - Proceedings of the 10th International Symposium on Software Composition (SC'11)
PB - Springer Verlag
T2 - 10th International Conference on Software Composition, SC 2011
Y2 - 30 June 2011 through 1 July 2011
ER -