Search in sources :

Example 1 with FilteredBy

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;
}
Also used : FilteredBy(jodd.madvoc.meta.FilteredBy) ActionFilter(jodd.madvoc.filter.ActionFilter)

Aggregations

ActionFilter (jodd.madvoc.filter.ActionFilter)1 FilteredBy (jodd.madvoc.meta.FilteredBy)1