I am trying to create an interceptor with its own annotation but I want to know if it is possible to limit it only to methods and use:
@Target(ElementType.METHOD) instead of @Target({ElementType.METHOD, ElementType.TYPE}).
@Target(ElementType.METHOD)
@Target({ElementType.METHOD, ElementType.TYPE})
any ideas for this ?