Announcement Announcement Module
Collapse
No announcement yet.
passing parent id to bean() pointcut ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • passing parent id to bean() pointcut ?

    [bean id="parent" class="Foo"/]
    [bean id="c1" parent="parent"/]
    [bean id="c2" parent="parent"/]

    [aop:advisor advice-ref="adviser2" pointcut="bean(parent)"/]

    I want adviser2 to be called for c1 and c2. Looks like it does not work.
    Have I missed something or should I create an issue about that?

  • #2
    Your pointcut expression has to improve here. Try with
    execution(* com.full.package.to.Foo+.*(..))
    . It should work.

    Comment

    Working...
    X