Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Software Teaming: A Mob Programming, Whole-Team Approach
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Rob Spoor
Junilu Lacar
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Piet Souris
Carey Brown
Bartenders:
Forums:
Spring
Aspect Oriented Programming
Looking for explanation of the following spring term: *com.mytransaction.service.*.*(..))
Greg Funston
Ranch Hand
Posts: 81
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
<aop:config> <aop:pointcut id="allServices" expression="execution(*com.mytransaction.service.*.*(..))"/> <aop:advisor advice-ref="txAdvice" pointcut-ref="allServices"/> </aop:config>
Thanks
Tim Cooke
Marshal
Posts: 5508
326
I like...
posted 9 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Tim Driven Development
| Test until the fear goes away
Greg Funston
Ranch Hand
Posts: 81
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks very much. I expected that was the case. Nice to have it confirmed.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Transaction demarcation works with TransactionProxy but not AOP
AOP declared without indicating when the advice to be fired
Hello world spring aop
Logging aspect
Spring Transaction by AOP
More...