List of usage examples for org.springframework.core MethodParameter hasParameterAnnotation
public <A extends Annotation> boolean hasParameterAnnotation(Class<A> annotationType)
From source file:net.kaczmarzyk.spring.data.jpa.web.ConjunctionSpecificationResolver.java
@Override public boolean supportsParameter(MethodParameter param) { return param.getParameterType() == Specification.class && param.hasParameterAnnotation(Conjunction.class); }
From source file:net.kaczmarzyk.spring.data.jpa.web.DisjunctionSpecificationResolver.java
@Override public boolean supportsParameter(MethodParameter param) { return param.getParameterType() == Specification.class && param.hasParameterAnnotation(Disjunction.class); }
From source file:ru.mystamps.web.support.spring.security.CurrentUserArgumentResolver.java
@Override public boolean supportsParameter(MethodParameter parameter) { return parameter.getParameterType().isAssignableFrom(Integer.class) && parameter.hasParameterAnnotation(CurrentUser.class); }
From source file:com.ufukuzun.myth.dialect.handler.AjaxRequestResponseBodyReturnValueHandler.java
@Override public boolean supportsParameter(MethodParameter parameter) { return parameter.hasParameterAnnotation(AjaxRequestBody.class); }
From source file:com.sws.platform.mobile.common.json.RequestJsonParamMethodArgumentResolver.java
public boolean supportsParameter(MethodParameter parameter) { return parameter.hasParameterAnnotation(RequestJsonParam.class); }
From source file:base.resolver.JsonModelResolver.java
public boolean supportsParameter(MethodParameter parameter) { if (parameter.hasParameterAnnotation(JsonModel.class)) { return true; }//from w ww . j av a2 s . c om return false; }
From source file:org.focusns.common.web.widget.mvc.method.WidgetMethodArgumentResolver.java
public boolean supportsParameter(MethodParameter parameter) { ///*from w w w . j a v a 2s .c o m*/ if (parameter.hasParameterAnnotation(WidgetAttribute.class)) { return true; } else if (parameter.hasParameterAnnotation(WidgetPref.class)) { return true; } // return false; }
From source file:asia.gkc.vneedu.authorization.resolver.ActiveUserArgumentResolver.java
@Override public boolean supportsParameter(MethodParameter parameter) { return parameter.getParameterType().isAssignableFrom(User.class) && parameter.hasParameterAnnotation(ActiveUser.class); }
From source file:cn.javass.spring.mvc.method.annotation.RequestJsonParamMethodArgumentResolver.java
public boolean supportsParameter(MethodParameter parameter) { if (parameter.hasParameterAnnotation(RequestJsonParam.class)) { return true; }/*from ww w.j av a 2 s. c o m*/ return false; }
From source file:org.opentides.web.processor.FormBindMethodProcessor.java
/** * @return true if the parameter is annotated with {@link FormBind} *//* w w w . j ava 2 s . c o m*/ public boolean supportsParameter(MethodParameter parameter) { if (parameter.hasParameterAnnotation(FormBind.class)) { return true; } else { return false; } }