private void initializeProviderFactory() { if (providerFactory == null) { providerFactory = ResteasyProviderFactory.getInstance(); RegisterBuiltin.register(providerFactory); // String converters providerFactory.addStringConverter(BusinessArchiveStringConverter.class); providerFactory.addStringConverter(HashMapStringConverter.class); providerFactory.addStringConverter(MapStringConverter.class); providerFactory.addStringConverter(AttachementInstanceStringConverter.class); providerFactory.addStringConverter(ActivityInstanceStringConverter.class); providerFactory.addStringConverter(ActivityInstanceImplStringConverter.class); providerFactory.addStringConverter(GenericObjectStringConverter.class); providerFactory.addStringConverter(RuleStringConverter.class); providerFactory.addStringConverter(DateStringConverter.class); // providers providerFactory.registerProvider(GenericObjectProvider.class); providerFactory.registerProvider(OctectStreamProvider.class); // interceptors providerFactory.registerProvider(RESTClientExecutionInterceptor.class); // client errorInterceptor providerFactory.addClientErrorInterceptor(new BonitaClientErrorInterceptor()); } }
static { RegisterBuiltin.register(providerFactory); providerFactory.registerProvider(SrampAtomExceptionProvider.class); providerFactory.registerProvider(HttpResponseProvider.class); }