[go: up one dir, main page]

AspectJTM is a seamless aspect-oriented extension to JavaTM. The compiler and development tools are available under an open-source license, require Java 8 to run, and produce code that runs in JDK 1.3 and later VM’s. For the latest materials, see https://eclipse.org/aspectj. Not all of these materials have been updated for AspectJ 5.

Section Contents

Documentation

FAQ, Quick Reference (AspectJ 5), Quick Reference (1.2.1), AspectJ 5 Developer’s Notebook, programming, development and problem diagnosis guides, runtime API, weaver API and example code

Distributions

AspectJ development environment support for Eclipse

Other resources

AspectJ project, the bug db, and mailing lists for users and developers.

Learning paths

for those new to AspectJ

AspectJ documentation

Documentation Description

AspectJ 5 Quick Reference

Four-page quick reference for the AspectJ 5 language

AspectJ Quick Reference

Two-page quick reference for the AspectJ language

AspectJ 5 Developer’s Notebook

Describes the changes to the AspectJ language and tools introduced in the AspectJ 5 Development Kit. These changes are additive, and are not yet reflected in the programming guide or quick reference.

Introduces AOP and the AspectJ language. Getting Started describes basic semantics and shows development- and production-time applications. The AspectJ Language describes join points, pointcuts, advice, and introduction, all features new to AOP. Examples walks you through the examples included with the documentation, and there are two short chapters on useful Idioms and a few Pitfalls.
The appendices have reference information: the Quick Reference summarizes AspectJ syntax, the Language Semantics best describes AspectJ usage, and Implementation Notes describes how the current version is limited to code the compiler controls.

Development Environment Guide

Guide to the command-line compiler ajc and the Ant tasks for building AspectJ programs

Problem Diagnosis Guide

Guide to various debugging features available, such as messages and trace to help you both solve problems with you own programs and report bugs to the AspectJ team

AspectJ Runtime API

API documentation for AspectJ runtime classes. JoinPoint shows the state automatically available at each join point. ProceedingJoinPoint explains how to proceed(..) to the intercepted join point from an around advice.

AspectJ Weaver API

API documentation for AspectJ weaver classes. This is a superset of the runtime API plus all the additional classes used for byte code weaving, both during compilation from source code and binary weaving during post-compile and load-time weaving.

FAQ

Frequently asked questions about the AspectJ language, tools, and project

Java version compatibility

Compatibility matrix, explaining which AspectJ compiler version supports which Java language version and needs which JDK to run

Release notes

Release notes, describing new features, improvements, bugfixes per AspectJ version:

1.9.22 / 1.9.22.1, 1.9.21 / 1.9.21.1 / 1.9.21.2, 1.9.20 / 1.9.20.1, 1.9.19, 1.9.9 / 1.9.9.1, 1.9.8, 1.9.7, 1.9.6, 1.9.5, 1.9.4, 1.9.3, 1.9.2, 1.9.1, 1.9.0, 1.8.14, 1.8.13, 1.8.12, 1.8.11, 1.8.10, 1.8.9, 1.8.8, 1.8.7, 1.8.6, 1.8.5, 1.8.4, 1.8.3, 1.8.2, 1.8.1, 1.8.0, 1.7.4, 1.7.3, 1.7.2, 1.7.1, 1.7.0, 1.6.12, 1.6.11, 1.6.10, 1.6.9, 1.6.8, 1.6.7, 1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.4, 1.5.3, 1.5.2, 1.5.1, 1.5.0, 1.2.1, 1.2, 1.1.

Changes (historical)

Changes between historical releases up to 1.6.0

Porting guide (historical)

Porting guide for historical releases to 1.2

Examples

AspectJ code to demonstrate some language features and implement JavaBean properties, the Observer pattern, a tracing library, and a game application where aspects handle display updating

AspectJ Design Overview

Introductory information about AspectJ language design, developer guides, module structure

AspectJ distributions

Distributions Description

AspectJ binary distribution

The AspectJ distribution contains a Java-based installer, binaries for the compiler, Ant taskdefs as well as the documentation and examples.

AspectJ source code

Source code for AspectJ is available under the open-source Eclipse Public License v 2.0 license from the Git repositories for the AspectJ project. See the FAQ entry.

AspectJ for Eclipse

AspectJ Development Environment support for Eclipse is available under Eclipse Public License v 1.0 from the eclipse.org project site https://eclipse.org/ajdt

Other AspectJ resources

Resources Description

Mail lists

AspectJ users discuss tips and best practices for writing AspectJ programs on aspectj-users@eclipse.org. AspectJ developers discuss issues with developing the AspectJ tools on aspectj-dev@eclipse.org. To get occasional emails about AspectJ releases and relevant events, subscribe to aspectj-announce@eclipse.org. To view list archives or subscribe to the list, go to the AspectJ home page. To find archived emails, use the Eclipse site search page.

Bug database

Use the Eclipse project’s Bugzilla database to view and submit bugs against the AspectJ product components Compiler (for the AspectJ compiler, ajc), IDE (for AJDE bugs), Ant (for the Ant tasks) and Docs (for the documentation). Bugs all users should know about are flagged with the "info" keyword. See the FAQ entry for instructions on submitting compiler bugs.

Suggested learning paths for those new to AspectJ

To learn the AspectJ language, read the Programming Guide, keeping the Semantics appendix nearby as the best reference for AspectJ usage. Focus initially on the join point model and pointcuts, concepts AOP adds to OOP. To read about how the examples work, see the Examples section in the Programming Guide. View and navigate the crosscutting structure using AJDT.

To start using AspectJ with your own code, modify the example aspects to apply to your classes. As you learn, use the compiler’s -Xlint flags to catch some common mistakes. (Understand that the current implementation is limited to code the compiler controls.)

To plan how to adopt AspectJ into a project, read the Programming Guide on development- and production-time aspects and the FAQ entries for How should I start using AspectJ?, Deciding to adopt AspectJ, the Development tools sections (How does AspectJ integrate with existing Java development tools?, Integrating AspectJ into your development environment, Load-time weaving), and AspectJ as open-source).

Enjoy the language!

The AspectJ Team


Top