Appendix A. The AspectJ Runtime API


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 API


The main packages of the AspectJ runtime API contain:


org.aspectj.lang

Provides interfaces and support classes for discovering runtime information about join points.


org.aspectj.lang.reflect

Contains interfaces that provide more specialized information concerning join point signatures.


org.aspectj.weaver.tools

Provides interfaces to support a JVM class loader in performing load-time weaving.

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.



AspectJ Cookbook
Aspectj Cookbook
ISBN: 0596006543
EAN: 2147483647
Year: 2006
Pages: 203
Authors: Russ Miles

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net