From: William A. S. <wil...@gm...> - 2014-07-10 14:48:37
|
Hello, There's a static method getInstance. I'd use that. -- *William Antônio Siqueira* *Java Support Analyst* *http://fxapps.blogspot.com <http://fxapps.blogspot.com>* *http://www.williamantonio.wordpress.com <http://www.williamantonio.wordpress.com>* *http://williamprogrammer.com <http://williamprogrammer.com>* 2014-07-09 17:31 GMT-03:00 John Ulric <uj...@gm...>: > Hello everybody. > > If an application needs to create different clients using the RESTEasy > client framework, and each of these clients needs a different provider > configuration, what's the correct way to construct the corresponding > ResteasyProviderFactory instances (to be passed to ClientRequestFactory as > a constructor parameter, probably)? Can I just call the public > ResteasyProviderFactory constructor? Any initializations needed? (I'm > asking because there seems to be quite some initialization and delegation > machinery behind the scenes.) > > Background: The clients need different Jackson ObjectMappers, so the > application uses ResteasyProviderFactory.addContextResolver with > different ContextResolver<ObjectMapper> instances. > > Thanks, John > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > |