@Test public void testTypedClientGetWithPathParameter() throws Exception { initializeSampleMovieServiceMocks(); replayAll(); SampleMovieService service = RibbonDynamicProxy.newInstance(SampleMovieService.class, httpResourceGroupMock); RibbonRequest<ByteBuf> ribbonMovie = service.findMovieById("123"); assertNotNull(ribbonMovie); }
public static <T> T newInstance(Class<T> clientInterface) { return newInstance(clientInterface, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT), ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT); }
RibbonDynamicProxy implements InvocationHandler { public static <T> T newInstance(Class<T> clientInterface) { return newInstance(clientInterface, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT), ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT); } }
RibbonDynamicProxy implements InvocationHandler { public static <T> T newInstance(Class<T> clientInterface) { return newInstance(clientInterface, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT), ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT); } RibbonDynamicProxy(Class<T> clientInterface, HttpResourceGroup httpResourceGroup);  RibbonDynamicProxy(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory, ClientConfigFactory configFactory,
                              RibbonTransportFactory transportFactory, AnnotationProcessorsProvider processors); }
RibbonDynamicProxy implements InvocationHandler { public static <T> T newInstance(Class<T> clientInterface) { return newInstance(clientInterface, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT), ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT); } RibbonDynamicProxy(Class<T> clientInterface, HttpResourceGroup httpResourceGroup);  RibbonDynamicProxy(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory, ClientConfigFactory configFactory,
                              RibbonTransportFactory transportFactory, AnnotationProcessorsProvider processors); @Override Object invoke(Object proxy, Method method, Object[] args); @Override String toString(); static T newInstance(Class<T> clientInterface); @SuppressWarnings("unchecked") static T newInstance(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory,
                                    ClientConfigFactory configFactory, RibbonTransportFactory transportFactory, AnnotationProcessorsProvider processors); static T newInstance(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory,
                                    ClientConfigFactory configFactory, RibbonTransportFactory transportFactory); }
RibbonDynamicProxy implements InvocationHandler { public static <T> T newInstance(Class<T> clientInterface) { return newInstance(clientInterface, new DefaultResourceFactory(ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT), ClientConfigFactory.DEFAULT, RibbonTransportFactory.DEFAULT, AnnotationProcessorsProvider.DEFAULT); } RibbonDynamicProxy(Class<T> clientInterface, HttpResourceGroup httpResourceGroup);  RibbonDynamicProxy(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory, ClientConfigFactory configFactory,
                              RibbonTransportFactory transportFactory, AnnotationProcessorsProvider processors); @Override Object invoke(Object proxy, Method method, Object[] args); @Override String toString(); static T newInstance(Class<T> clientInterface); @SuppressWarnings("unchecked") static T newInstance(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory,
                                    ClientConfigFactory configFactory, RibbonTransportFactory transportFactory, AnnotationProcessorsProvider processors); static T newInstance(Class<T> clientInterface, RibbonResourceFactory resourceGroupFactory,
                                    ClientConfigFactory configFactory, RibbonTransportFactory transportFactory);  }