I\'d like to implement declarative security with Spring/AOP and annotations. As you see in the next code sample I have the Restricted Annotations with the paramter \"allowed
I assume @Restricted is your annotation. If that is the case, make sure you have:
@Restricted
@Retention(RetentionPolicy.RUNTIME)
in your annotation definition. This means that the annotation is retained at runtime.