use of jodd.madvoc.meta.FilteredBy in project jodd by oblac.
the class ActionMethodParser method readActionFilters.
// ---------------------------------------------------------------- filters
/**
* Reads class or method annotation for action filters.
*/
protected Class<? extends ActionFilter>[] readActionFilters(AnnotatedElement actionClassOrMethod) {
Class<? extends ActionFilter>[] result = null;
FilteredBy filteredBy = actionClassOrMethod.getAnnotation(FilteredBy.class);
if (filteredBy != null) {
result = filteredBy.value();
if (result.length == 0) {
result = null;
}
}
return result;
}
Aggregations