Results 1 to 2 of 2

Thread: Howt to access "thisEnclosingJoinPointStaticPart"??

  1. #1

    Default 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. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    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
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •