@Override protected void configure() { providers.forEach(provider -> bind(provider).to(HeaderDelegateProvider.class)); }
new JerseyClassAnalyzer.Binder(), new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT), new MessagingBinders.HeaderDelegateProviders(), new MessageBodyFactory.Binder(), new ContextResolverFactory.Binder(),
new JerseyClassAnalyzer.Binder(), new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT), new MessagingBinders.HeaderDelegateProviders(), new MessageBodyFactory.Binder(), new ContextResolverFactory.Binder(),
new JerseyClassAnalyzer.Binder(), new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT), new MessagingBinders.HeaderDelegateProviders(), new MessageBodyFactory.Binder(), new ContextResolverFactory.Binder(),
/** * @see #link(ServiceLocator, Injector) * @see #newChildInjector(Injector, ServiceLocator) */ private static ServiceLocator link(ServiceLocator locator, Injector injector, Iterable<? extends Binder> binders) { DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class); DynamicConfiguration dc = dcs.createDynamicConfiguration(); GuiceJustInTimeResolver resolver = new GuiceJustInTimeResolver(locator, injector); dc.bind(BuilderHelper.createConstantDescriptor(resolver)); dc.addActiveDescriptor(GuiceScopeContext.class); bind(locator, dc, new MessagingBinders.HeaderDelegateProviders()); for (Binder binder : binders) { bind(locator, dc, binder); } dc.commit(); return locator; }
/** * @see #link(ServiceLocator, Injector) * @see #newChildInjector(Injector, ServiceLocator) */ private static ServiceLocator link(ServiceLocator locator, Injector injector, Iterable<? extends Binder> binders) { DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class); DynamicConfiguration dc = dcs.createDynamicConfiguration(); GuiceJustInTimeResolver resolver = new GuiceJustInTimeResolver(locator, injector); dc.bind(BuilderHelper.createConstantDescriptor(resolver)); dc.addActiveDescriptor(GuiceScopeContext.class); bind(locator, dc, new MessagingBinders.HeaderDelegateProviders()); for (Binder binder : binders) { bind(locator, dc, binder); } dc.commit(); return locator; }
/** * @see #link(ServiceLocator, Injector) * @see #newChildInjector(Injector, ServiceLocator) */ private static void link(ServiceLocator locator, Injector injector, Iterable<? extends Binder> binders) { DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class); DynamicConfiguration dc = dcs.createDynamicConfiguration(); GuiceJustInTimeResolver resolver = new GuiceJustInTimeResolver(locator, injector); dc.bind(BuilderHelper.createConstantDescriptor(resolver)); dc.addActiveDescriptor(GuiceScopeContext.class); bind(locator, dc, new MessagingBinders.HeaderDelegateProviders()); for (Binder binder : binders) { bind(locator, dc, binder); } dc.commit(); }
/** * @see #link(ServiceLocator, Injector) * @see #newChildInjector(Injector, ServiceLocator) */ private static void link(ServiceLocator locator, Injector injector, Iterable<? extends Binder> binders) { DynamicConfigurationService dcs = locator.getService(DynamicConfigurationService.class); DynamicConfiguration dc = dcs.createDynamicConfiguration(); GuiceJustInTimeResolver resolver = new GuiceJustInTimeResolver(locator, injector); dc.bind(BuilderHelper.createConstantDescriptor(resolver)); dc.addActiveDescriptor(GuiceScopeContext.class); bind(locator, dc, new MessagingBinders.HeaderDelegateProviders()); for (Binder binder : binders) { bind(locator, dc, binder); } dc.commit(); }
@Override protected void configure() { install(new MessagingBinders.MessageBodyProviders(clientRuntimeProperties, RuntimeType.CLIENT), new MessagingBinders.HeaderDelegateProviders()); bindFactory(ReferencingFactory.referenceFactory()).to(new GenericType<Ref<ClientConfig>>() { }).in(RequestScoped.class); bindFactory(RequestContextInjectionFactory.class) .to(ClientRequest.class) .in(RequestScoped.class); bindFactory(ReferencingFactory.referenceFactory()).to(new GenericType<Ref<ClientRequest>>() { }).in(RequestScoped.class); bindFactory(PropertiesDelegateFactory.class, Singleton.class).to(PropertiesDelegate.class).in(RequestScoped.class); // ChunkedInput entity support bind(ChunkedInputReader.class).to(MessageBodyReader.class).in(Singleton.class); } }
public RuntimeDelegateImpl() { super(Injections.createLocator("jersey-common-rd-locator", new MessagingBinders.HeaderDelegateProviders())); }
@Override protected void configure() { bind(CacheControlProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(CookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(DateProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(EntityTagProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LinkProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LocaleProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(MediaTypeProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(NewCookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(StringHeaderProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(UriProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); } }
public RuntimeDelegateImpl() { super(new MessagingBinders.HeaderDelegateProviders().getHeaderDelegateProviders()); }
public RuntimeDelegateImpl() { // TODO add more binders as necessary super(Injections.createLocator("jersey-server-rd-locator", new MessagingBinders.HeaderDelegateProviders())); }
public RuntimeDelegateImpl() { super(Injections.createLocator("jersey-common-rd-locator", new MessagingBinders.HeaderDelegateProviders())); }
@Override protected void configure() { bind(CacheControlProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(CookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(DateProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(EntityTagProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LinkProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LocaleProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(MediaTypeProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(NewCookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(StringHeaderProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(UriProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); } }
@Override protected void configure() { bind(CacheControlProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(CookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(DateProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(EntityTagProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LinkProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(LocaleProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(MediaTypeProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(NewCookieProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(StringHeaderProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); bind(UriProvider.class).to(HeaderDelegateProvider.class).in(Singleton.class); } }
@Override protected void configure() { providers.forEach(provider -> bind(provider).to(HeaderDelegateProvider.class)); }
public RuntimeDelegateImpl() { super(new MessagingBinders.HeaderDelegateProviders().getHeaderDelegateProviders()); }
public RuntimeDelegateImpl() { // TODO add more binders as necessary super(Injections.createLocator("jersey-server-rd-locator", new MessagingBinders.HeaderDelegateProviders())); }
public RuntimeDelegateImpl() { super(new MessagingBinders.HeaderDelegateProviders().getHeaderDelegateProviders()); }