Jan 26th, 2011, 02:04 AM
MethodBeforeAdvice - getting method's annotations fails
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?
Jan 27th, 2011, 08:44 AM
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.