Sep 9th, 2008, 10:02 AM
Your problem seams to be a Java problem instead of a Spring related problem. What you try to achieve is currently not possible because Java does not support annotation inheritance.
There is however a library that lets you use inherited annotations.
If you want to use this, I guess you will have to write your own implementation of AspectJ pointcut and advice so it uses this library.
Looks like a nice challenge...
Sep 10th, 2008, 02:52 AM
In my first post I pointed out: "Too bad that annotations on interfaces are not inheritable... only class annotations can!!!"
I was hoping that there was some pointcut type that I was not aware of that would help me around this restriction. Obviously there is none.
Just to learn something: Do you have a link as to how to implement my own pointcut type in Spring? Or is Spring not built for this kind of extension, which I would understand very well, but Spring has suprised me many times ;-)
Tags for this Thread