I'm aware of AspectJ, Spring, and JBoss. Are there other mature and widely adopted frameworks?
Asked
Active
Viewed 6,625 times
4 Answers
4
I think all of them, AspectJ, SprintAOP and JBossAOP, are widely used. But they are different at some aspects. What you need to do is to choose the most proper one for your project.
For example, here is Spring AOP vs AspectJ Spring AOP vs AspectJ

Community
- 1
- 1

Kleenestar
- 769
- 4
- 4
4
Google's popular dependency injection library Guice can perform AOP on non-final injected instances.

Mark Peters
- 80,126
- 17
- 159
- 190
-
Seems like Guice supports AOP through method interception. But does it also support annotation with attributes like `@NotOnDays({Days.SUNDAY, Days.SATURDAY})` as shown in this [example](https://github.com/google/guice/wiki/AOP#example-forbidding-method-calls-on-weekends)! – Akshat Jul 01 '15 at 13:48
3
Depends upon what platform you are working upon but CDI, part of the Java EE 6 specification, has some pretty decent AOP features within it now. Rick Hightower does an excellent job of walking through its capabilities in an article here: http://cdisource.org/site/2011/05/cdi-aop-tutorial/

Ray Ploski
- 301
- 1
- 3
2
AspectwerkZ is also widely used.check it is merged with AspectJ

Balaswamy Vaddeman
- 8,360
- 3
- 30
- 40
-
1AspectWerkz was merged with AspectJ long ago: http://aspectwerkz.codehaus.org/index-merge.html – Vadzim Feb 01 '12 at 08:59