my dog learned polymorphism*
The moose likes Other Application Frameworks and the fly likes GETTERS Pointcut Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "GETTERS Pointcut" Watch "GETTERS Pointcut" New topic
Author

GETTERS Pointcut

AliReza Naserzadeh
Greenhorn

Joined: Mar 31, 2007
Posts: 6
Hi Everybody,

I'm working on Spring and I need to configure a pointcut object which indicate all the getter methods of the target object. I used

<bean id="getterPointcut"
class="org.springframework.aop.support.Pointcuts.GETTERS"/>

But this does not work since GETTERS is a static member of the org.springframework.aop.support.Pointcuts class, instead of being a class.
So, I want to know how can I configure a bean which refer to a static member of a class.

Best,
AliReza
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well not sure how to get everything you need. But the util namespace has a tag for accessing Constant values.

But why aren't you using pointcut expression text like "execution(* get*(..))"?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GETTERS Pointcut
 
Similar Threads
Spring AOP, How does this example do it?
pointcut for method in parent abstract class
Spring AOP: How can I create pointcut for middle argument ?
why doesnt the compiler warn or check this ?
Doubt in Bean Details display