I have a plain jane servlets web application, and some of my classes have the following annotations:
@Controller
@RequestMapping(name = "/blog/")
public class TestController {
..
}
Now when my servlet applications starts up, I would like to get a list of all classes that have the @Controller annotation, and then get the value of the @RequestMapping annotation and insert it in a dictionary.
How can I do this?
I'm using Guice and Guava also, but not sure if that has any annotation related helpers.