-
Jan 26th, 2011, 02:04 AM
#1
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
-
Jan 27th, 2011, 08:44 AM
#2
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
-
Forum Rules