25

What does aspectj-weaver.jar do? What are its common uses?

Rob Hruska
  • 118,520
  • 32
  • 167
  • 192
Nook
  • 534
  • 2
  • 7
  • 14
  • 6
    I'd like to point out that the only thing wrong with this post is bad English/grammar skills. Its brevity does not preclude it from the scope of SO. *scowls at the close votes* – corsiKa Mar 14 '11 at 20:38
  • 2
    I concur -- sad to see word count used a proxy for question quality – user1172468 Aug 17 '12 at 22:08
  • 3
    I also concur. This is a most excellent question. It is perfectly obvious what is being asked here. It is completely unambiguous, not at all vague, 100% complete, precisely limited in scope, not rhetorical, and can very definitely be answered in its current form. This behavior is completely antithetical to what SO is all about. – Bob Kerns Oct 21 '12 at 07:59
  • I know this one is old, but still listed as unanswered. Would you please accept and upvote my answer if it seems appropriate? Thanks. – kriegaex Jun 09 '14 at 12:09

3 Answers3

12

The jar is used in aspectj for aspect oriented programming or AOP.

The weaver is the piece that actually "weaves" together the aspects/point-cuts/join-points defined with the code that is to be executed in each instance.

Brandon
  • 2,574
  • 19
  • 17
11

The answers here are not really clear (even though schnaader's link to a README points to the right info), so I am going to add a more precise one:

aspectjweaver.jar is an AspectJ library needed for LTW (load-time weaving), as opposed to compile-time weaving.

kriegaex
  • 63,017
  • 15
  • 111
  • 202
2

This is from AspectJ - also see this.

schnaader
  • 49,103
  • 10
  • 104
  • 136