Announcement Announcement Module
Collapse
No announcement yet.
Howt to access "thisEnclosingJoinPointStaticPart"?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Howt to access "thisEnclosingJoinPointStaticPart"??

    In an pure aspectj environment, thisEnclosingJoinPointStaticPart object is instantly available in any advice.

    But I am currently working in spring-aspectj+load-time-weaving only environment. How do I access this object from a standard JoinPoint pjp advice parameter?

  • #2
    You can't from the JoinPoint object. Instead, you will need to declare a variable of type: JoinPoint.EnclosingStaticPart (in addition to the JoinPoint variable, assuming you need that information as well).

    -Ramnivas

    Comment

    Working...
    X