File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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: 2712
110
Clojure IntelliJ IDE Java
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic