Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GETTERS Pointcut

 
AliReza Naserzadeh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic