Designer’s guide to design methods above AJDT and AspectJ

Designer’s guide to design methods above AJDT and AspectJ

This site is intended to support anybody developing knowledge to increase or assist AJDT/AspectJ. Kindly subscribe to these pages with any appropriate details, eg example signal utilizing the AJDT and/or AspectJ APIs.

This page may be out of go out. Our intention would be to modify this site for AJDT 1.6.1, but there is maybe not had times for this yet. Kindly realize that a few of something with this web page might no longer become proper. When you yourself have any queries, please send them to the mailing list ajdt-dev.

Information

  • 1 getting crosscutting commitment information from AJDT
  • 2 Compilation Units in AJDT
    • 2.1 obtaining the belongings in an AJCompilationUnit
  • 3 with the AspectJ AST parser
  • 4 Known limits, bugs, and exceptional issues
  • 5 The interface equipment are anticipated to make use of to drive the AspectJ compiler

Getting crosscutting commitment facts from AJDT

In case you are building an eclipse plug-in and require the means to access crosscutting suggestions whenever a venture is created, possible register a listener with AJDT. Your plug-in will need to depend on org.eclipse.ajdt.core, org.eclipse.core.resources and org.eclipse.jdt.core, and org.aspectj.weaver. Inside the org.eclipse.ajdt.core plug-in you will find an IAdviceChangedListener screen with just one adviceChanged() system.

Register this making use of AJBuilder lessons like this (inside plug-in’s start() method for instance):

Presently (AJDT 1.6) it is labeled as after each and every acquire of an AspectJ project (in other words. every *potential* guidance change). In a future release this may be optimized as merely called when the suggestions keeps actually altered. AJDT/UI makes use of this apparatus to revise the tangerine arrow picture decorator.

Read More