What is a replacement for the Resteasy ProxyFactory class

I just realized that the ProxyFactory class is deprecated in RestEasy version 3.0.0. Unfortunately, the approach that depreciates this class is not documented anywhere. I used to initialize my services this way, but what's new?

 protected static final String URL = "http://localhost:12345"+"/api"; protected static final MyService myService = ProxyFactory.create(MyService.class, URL); 
+7
java resteasy
source share
1 answer

RESTEasy 3.0.2.Final ( http://howtodoinjava.com/2013/08/03/jax-rs-2-0-resteasy-3-0-2-final-client-api-example/ )

 ResteasyClient client = new ResteasyClientBuilder().build(); ResteasyWebTarget target = client.target(URL); MyService myService = target.proxy(MyService .class); 
+11
source share

All Articles