*/
public class OsgiMethodInvokerFactory implements MethodInvokerFactory {
@Override
public MethodInvoker createInvoker(String basePath, Class<?> resourceClass, Method method, RESTEasyBindingModel model) {
ClientInvoker invoker = new ClientInvoker(basePath, resourceClass, method, model);
ResteasyProviderFactory repFactory = invoker.getResteasyProviderFactory();
for (Class<?> provider : RESTEasyProviders.PROVIDERS) {
repFactory.registerProvider(provider);
}
return invoker;
}