|
From: John U. <uj...@gm...> - 2014-07-09 20:31:11
|
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 |