This is entirely dependent on the AnnotationResolver that you use.  Spring
packages two implementations

1. DefaultAnnotationResolver - does not pay any attention to interfaces,
only resolves annotations that are inherited to super classes
2. SpringAnnotationResolver - uses spring's annotation resolution utility,
which appears to honor annotations on interfaces

Hope that helps,
Jared


On Sat, Mar 23, 2013 at 5:18 AM, Ken in Nashua <[email protected]> wrote:

> Folks,
>
> Is it possible to use roles on interfaces ?
>
> public interface IMyInterface extends SuperInterface {
>     @RequiresRoles("administrator")
>     Object action(Event e);
> }
>
> Thank you
>

Reply via email to