1 / 6

basis of crosscutting

basis of crosscutting. a join point model (JPM) has 3 critical elements what are the join points in AspectJ points in runtime call graph class members means of identifying join points in AspectJ signatures (plus …) means of specifying semantics at join points in AspectJ advice

helki
Download Presentation

basis of crosscutting

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. basis of crosscutting • a join point model (JPM) has 3 critical elements • what are the join points • in AspectJ • points in runtime call graph • class members • means of identifying join points • in AspectJ • signatures (plus …) • means of specifying semantics at join points • in AspectJ • advice • define members 1/14/02 UCSD

  2. basis of crosscutting • a join point model (JPM) has 3 critical elements • what are the join points • in AspectJ • points in runtime call graph • class members • means of identifying join points • in AspectJ • pointcuts • member signatures (plus …) • means of specifying semantics at join points • in AspectJ • advice • define members dynamic JPMstatic JPM 1/14/02 UCSD

  3. range of AOP languages See next slide for changes to AspectJ and Demeter 1/14/02 UCSD

  4. range of AOP languages 1/14/02 UCSD

  5. Composing join point models • Traversal Spec JPM: In Demeter we use traversal specifications and the class graph to introduce traversal methods to a set of classes. • Visitor JPM: The result of Traversal Spec. JPM is used to define a second JPM: • The traversal methods define nodes and edge visits. • Visitor signatures define the nodes and edges where additional advice is needed: they are the means of identifying join points. • The means of specifying semantics at join points are the visitor bodies. 1/14/02 UCSD

  6. foo dynamic JPM (~ AspectJ) what happens in pattern bar Composition Patterns static JPM (~ Hyper/J) binds pattern to base code UML class & interaction diagrams already crosscut by-class vs. by-interaction organizations AO design in UML [Clarke, Walker] 1/14/02 UCSD

More Related