@Override
 public void bindInterceptor(
     Matcher<? super Class<?>> classMatcher,
     Matcher<? super Method> methodMatcher,
     MethodInterceptor... interceptors) {
   binder.bindInterceptor(classMatcher, methodMatcher, interceptors);
 }
Beispiel #2
0
  @VisibleForTesting
  static void bindThriftDecorator(
      Binder binder, Matcher<? super Class<?>> classMatcher, MethodInterceptor interceptor) {

    binder.bindInterceptor(
        classMatcher, Matchers.returns(Matchers.subclassesOf(Response.class)), interceptor);
    binder.requestInjection(interceptor);
  }