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<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 Path so it is easy to filter all rest classes.
This matcher is required only for complex declaration cases.
- Since:
- 26.12.2019
-
Constructor Details
-
RestMethodMatcher
public RestMethodMatcher()
-
-
Method Details
-
matches
- Specified by:
matchesin interfacecom.google.inject.matcher.Matcher<Method>
-