@Test public void shouldRetrieveConfiguredConverter() throws NoSuchMethodException { final SomeBeanConverter someBeanConverter = new SomeBeanConverter(); final Scope scope = new SingleBeanScope<>(SomeBeanConverter.class, someBeanConverter); final Method method = ConvertersTest.class.getDeclaredMethod("methodWithConvertedParameter", SomeBean.class); final Converter<SomeBean> converter = Converters.getConverter(scope, SomeBean.class, method.getParameterAnnotations()[0]); Assert.assertNotNull("should not be null", converter); Assert.assertEquals("should be retrieved from scope", someBeanConverter, converter); }
static <T> Converter<T> getConverter(Scope scope, Class<T> parameterType) { return getConverter(scope, parameterType, EMPTY_ANNOTATIONS); }
Converters { static <T> Converter<T> getConverter(Scope scope, Class<T> parameterType) { return getConverter(scope, parameterType, EMPTY_ANNOTATIONS); } }
Converters { static <T> Converter<T> getConverter(Scope scope, Class<T> parameterType) { return getConverter(scope, parameterType, EMPTY_ANNOTATIONS); } private  Converters(); }
Converters { static <T> Converter<T> getConverter(Scope scope, Class<T> parameterType) { return getConverter(scope, parameterType, EMPTY_ANNOTATIONS); } private  Converters();  }
Converters { static <T> Converter<T> getConverter(Scope scope, Class<T> parameterType) { return getConverter(scope, parameterType, EMPTY_ANNOTATIONS); } private  Converters();   }