Search in sources :

Example 1 with InterceptedBy

use of jodd.madvoc.meta.InterceptedBy in project jodd by oblac.

the class ActionMethodParser method readActionInterceptors.

// ---------------------------------------------------------------- interceptors
/**
	 * Reads class or method annotation for action interceptors.
	 */
protected Class<? extends ActionInterceptor>[] readActionInterceptors(AnnotatedElement actionClassOrMethod) {
    Class<? extends ActionInterceptor>[] result = null;
    InterceptedBy interceptedBy = actionClassOrMethod.getAnnotation(InterceptedBy.class);
    if (interceptedBy != null) {
        result = interceptedBy.value();
        if (result.length == 0) {
            result = null;
        }
    }
    return result;
}
Also used : ActionInterceptor(jodd.madvoc.interceptor.ActionInterceptor) InterceptedBy(jodd.madvoc.meta.InterceptedBy)

Aggregations

ActionInterceptor (jodd.madvoc.interceptor.ActionInterceptor)1 InterceptedBy (jodd.madvoc.meta.InterceptedBy)1