providerFactory = ((ProviderFactoryDelegate) providerFactory).getDelegate();
}
for (Method method : clazz.getMethods())
{
ClientInvoker invoker = null;
Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
if (httpMethods == null || httpMethods.size() != 1)
{
throw new RuntimeException("You must use at least one, but no more than one http method annotation on: " + method.toString());
}
invoker = new ClientInvoker(baseUri, clazz, method, providerFactory, executor);
ClientInvokerInterceptorFactory.applyDefaultInterceptors(invoker, providerFactory, clazz, method);
invoker.setHttpMethod(httpMethods.iterator().next());
methodMap.put(method, invoker);
}
Class<?>[] intfs = {clazz, ResteasyClientProxy.class};