Results 1 to 2 of 2

Thread: passing parent id to bean() pointcut ?

  1. #1
    Join Date
    Apr 2010
    Posts
    11

    Default 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. #2
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •