Class RestMethodMatcher

  • All Implemented Interfaces:
    com.google.inject.matcher.Matcher<java.lang.reflect.Method>

    public class RestMethodMatcher
    extends com.google.inject.matcher.AbstractMatcher<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 Path so it is easy to filter all rest classes. This matcher is required only for complex declaration cases.

    Since:
    26.12.2019
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.reflect.Method method)  
      • Methods inherited from class com.google.inject.matcher.AbstractMatcher

        and, or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestMethodMatcher

        public RestMethodMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.reflect.Method method)