It is sometimes useful to access information about the join points that trigger an advice in your aspects at runtime, and AspectJ provides a runtime API in the org.aspectj.* packages that can be used for just this purpose. Figure A-1 shows the package breakdown for the AspectJ runtime API. Figure A-1. The package structure of the AspectJ runtime APIThe main packages of the AspectJ runtime API contain:
This appendix focuses on the contents of org.aspectj.lang and org.aspectj.lang.reflect and gives a brief overview of each of the main components in those packages. If you want to delve into the API, then the full documentation is available within your AspectJ installation at %ASPECTJ_INSTALLATION_DIR%/doc/api/index.html. |