Results 1 to 2 of 2

Thread: MethodBeforeAdvice - getting method's annotations fails

  1. #1
    Join Date
    Oct 2010
    Location
    Holzwickede
    Posts
    5

    Default MethodBeforeAdvice - getting method's annotations fails

    Hi all,

    i'm using spring 2.5.6.A and implemented a new before advice to be used inside an OSGi container. Integration of that advice works well.

    I'd like to analyze the method's annotations, given as the before() argument. But it always returns an empty array, althow it definitely has annotations.

    Is it a bug or is there a reason for that behaviour?

    Thanks and

    kind regards

    Dirk

  2. #2
    Join Date
    Oct 2010
    Location
    Holzwickede
    Posts
    5

    Red face Resolution

    Forget it!

    the before() method's argument represents only the interface's method declaration to be called.

    One have to obtain the target object's method explicitely.

    Sorry

    Dirk

Posting Permissions

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