Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Inherit Annotation from Interface for pointcutting

  1. #11
    Join Date
    Dec 2007
    Location
    Belgium
    Posts
    24

    Default

    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...

  2. #12
    Join Date
    Sep 2008
    Posts
    7

    Default

    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

Posting Permissions

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