Angry Bill

tech talk radio

Improvements to Scannotation

Posted by billburke on January 22, 2008

I made a few little improvements to Scannotation that I needed to have in our JSR-311 implementation:

  • CrossRefException is now a checked exception. You should be forced to deal with this exception.
  • Configurable ignored packages. You can specify which packages you do not want to scan. Performance tweak.
  • Meta-annotations are now cross-referenceable if you invoke the appropriate APIs. What do I mean by this?

Example of cross-referencing meta-annotations:

@HttpMethod("GET")
public @interface GET {}

public class BookStore {
    @GET String getBook() {...}
}

BookStore can now be cross-referenced with @HttpMethod if you call the appropriate method on AnnotationDB.


One Response to “Improvements to Scannotation”

  1. jeff haynie Says:

    scannotation is just what i needed for some stuff i’m trying to do in appcelerator…. plan on pulling it in tonight. thanks!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>