I have a JAX-RS based (RESTEasy) REST server that uses Java annotations to label resource methods with URLs, etc. For example, a methods can have the annotations
@javax.ws.rs.GET
@javax.ws.rs.Path("/users/{user_id}")
public Response getUser(...)
and will be called automatically when a client calls the GET /users/1234 HTTP/1.1 URL.
I am finding that my resource methods have more and more "common" logic that must be executed with every method: logging, security checks, query parameter validation, etc. I believe that this calls for Aspect-Orient-Programming (AOP), but I have not used this technology before. If I use one of the AOP frameworks, will my annotation "labeling" be preserved so that the JAX-RS driver can find my resource methods? Which AOP frameworks will work with my requirements?