goja-web/src/main/java/goja/plugins/shiro/ShiroPlugin.java
private List<Annotation> getAuthzAnnotations(
            Class<? extends Controller> targetClass) {
        List<Annotation> annotations = Lists.newArrayList();
        for (Class<? extends Annotation> annClass : AUTHZ_ANNOTATION_CLASSES) {
            Annotation a = targetClass.getAnnotation(annClass);
            if (a != null) {
                annotations.add(a);
            }
        }
        return annotations;
    }
private List<Annotation> getAuthzAnnotations(
            Class<? extends Controller> targetClass) {
        List<Annotation> annotations = Lists.newArrayList();
        for (Class<? extends Annotation> annClass : AUTHZ_ANNOTATION_CLASSES) {
            Annotation a = targetClass.getAnnotation(annClass);
            if (a != null) {
                annotations.add(a);
            }
        }
        return annotations;
    }
private List < Annotation > getAuthzAnnotations ( Class < ? extends Controller > targetClass ) { List < Annotation > annotations = Lists . newArrayList ( ) ; for ( Class < ? extends Annotation > annClass : AUTHZ_ANNOTATION_CLASSES ) { Annotation a = targetClass . getAnnotation ( annClass ) ; if ( a != null ) { annotations . add ( a ) ; } } return annotations ; }
返回该Controller的所有访问控制注解
返回该Controller的所有访问控制注解