• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Looking for explanation of the following spring term: *com.mytransaction.service.*.*(..))

 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I saw this term "*com.mytransaction.service.*.*(..))" in the following code snippet. I was looking for an explanation of the "(..)" portion and what it means to the configuration.



Thanks

 
Tim Cooke
Sheriff
Pie
Posts: 3133
136
Clojure IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "(..)" portion is "regardless of parameters".

So the whole pointcut expression applies to any class in package com.mytransaction.service, regardless of method, and regardless of parameters.

The leading * is irrelevant for Spring AOP. It has a meaning in Aspect J, which is where the notation comes from, but Spring AOP ignores it.
 
Greg Funston
Ranch Hand
Posts: 81
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much. I expected that was the case. Nice to have it confirmed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic