Package ru.vyarus.guicey.validation.util
Class RestMethodMatcher
- java.lang.Object
-
- ru.vyarus.guicey.validation.util.RestMethodMatcher
-
- All Implemented Interfaces:
com.google.inject.matcher.Matcher<java.lang.reflect.Method>
public class RestMethodMatcher extends java.lang.Object implements com.google.inject.matcher.Matcher<java.lang.reflect.Method>Matcher denies methods annotated with jax-rs annotations. This is required to avoid duplicate validations (because dropwizard already applies validations on rest).Normally, all rest resources are annotated with
Pathso it is easy to filter all rest classes. This matcher is required only for complex declaration cases.- Since:
- 26.12.2019
-
-
Constructor Summary
Constructors Constructor Description RestMethodMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.reflect.Method method)
-