Announcement Announcement Module
Collapse
No announcement yet.
Name and class of the target Method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Name and class of the target Method

    Hello

    I'm still studing about how i should integrate spring aop into our application.

    The point is, we'll use the annotation configuratoin, not the one with the xml files. But now i need the target Method in one of my methods.

    So i found out, that i can implements the BeforeMethodAdvice interface and there I've got my Method as an Argument. But now, how could I define the Pointcuts for this Aspect without using the XML Configuration? Or how could I pass the target method to my "Action"?

    Thanks a lot for your support.
    HellReiser

  • #2
    You can declare a parameter of either JoinPoint, JoinPoint.StaticPart, or ProceedingJoinPoint and then do:

    Code:
    ((MethodSignature)jp.getSignature()).getMethod();
    -Ramnivas

    Comment

    Working...
    X