Announcement Announcement Module
Collapse
No announcement yet.
Wildcards in @Pointcut execution Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wildcards in @Pointcut execution

    Hi,

    I have an example pointcut which I can't quite figure out

    Pointcut("execution(* *..Controller+.*(..))")

    I'm wondering if anyone can tell me what the "+" is doing in the middle of the package. Is this a wildcard or just part of the package name?

    A stupid question I'm sure but it's bugging me and I don't have access to my spring environment to do some tests.

  • #2
    Well I suggest the AspectJ reference guide or the excellent AspectJ in Action book.

    1) It isn't part of the package it is part of the classname
    2) It means any subclass/subinterface or implementation (the latter if the + is on an Interface as in your sample)

    Comment

    Working...
    X