Support specifying annotations on resource classes as well as methods.