org.glassfish.jersey.server.internal.inject.AbstractContainerRequestValueFactory to org.glassfish.jersey.server.internal.inject.AbstractContainerRequestValueSupplier
No. of Instances - 16
No. of Commits - 2
No. of Projects - {'jersey'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
- Cascading Type Change (Different)
- WebTargetValueFactory to WebTargetValueSupplier
- QueryParamValueFactory to QueryParamValueSupplier
- MatrixParamValueFactory to MatrixParamValueSupplier
- HeaderParamValueFactory to HeaderParamValueSupplier
- FormParamValueFactory to FormParamValueSupplier
- PathParamPathSegmentValueFactory to PathParamPathSegmentValueSupplier
- PathParamListPathSegmentValueFactory to PathParamListPathSegmentValueSupplier
- PathParamValueFactory to PathParamValueSupplier
- CookieTypeParamValueFactory to CookieTypeParamValueSupplier
- CookieParamValueFactory to CookieParamValueSupplier
- MyValueFactory to MyValueSupplier
- CookieTypeParamValueFactory to CookieTypeParamValueSupplier
- CookieParamValueFactory to CookieParamValueSupplier
- FormParamValueFactory to FormParamValueSupplier
- PathParamPathSegmentValueFactory to PathParamPathSegmentValueSupplier
- PathParamListPathSegmentValueFactory to PathParamListPathSegmentValueSupplier
- PathParamValueFactory to PathParamValueSupplier
- QueryParamValueFactory to QueryParamValueSupplier
- MyValueFactory to MyValueSupplier
- MatrixParamValueFactory to MatrixParamValueSupplier
- HeaderParamValueFactory to HeaderParamValueSupplier
- WebTargetValueFactory to WebTargetValueSupplier
- Rename Variable
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- createValueFactory to createValueSupplier
- Cascading Type Change (Similar)
- Producer<AbstractContainerRequestValueFactory<?>> to Producer<AbstractContainerRequestValueSupplier<?>>
- Producer<AbstractContainerRequestValueFactory<?>> to Producer<AbstractContainerRequestValueSupplier<?>>
- Update Anonymous class
- { @Override public AbstractContainerRequestValueFactory<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=Collections2.filter(serverConfig.getPropertyNames(),new Predicate<String>(){ @Override public boolean apply( String property){ return property.startsWith(propertyPrefix); } } ); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueFactory(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } } to { @Override public AbstractContainerRequestValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=Collections2.filter(serverConfig.getPropertyNames(),new Predicate<String>(){ @Override public boolean apply( String property){ return property.startsWith(propertyPrefix); } } ); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } }
- { @Override public AbstractContainerRequestValueFactory<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=serverConfig.getPropertyNames().stream().filter(property -> property.startsWith(propertyPrefix)).collect(Collectors.toSet()); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueFactory(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } } to { @Override public AbstractContainerRequestValueSupplier<?> call(){ String targetUriTemplate=parameter.getSourceName(); if (targetUriTemplate == null || targetUriTemplate.length() == 0) { Errors.warning(this,LocalizationMessages.INJECTED_WEBTARGET_URI_INVALID(targetUriTemplate)); return null; } final Class<?> rawParameterType=parameter.getRawType(); if (rawParameterType == WebTarget.class) { final BindingModel binding=BindingModel.create(Arrays.<Annotation>asList(parameter.getAnnotations())); Value<ManagedClient> client=managedClients.get(binding); if (client == null) { client=Values.lazy(new Value<ManagedClient>(){ @Override public ManagedClient get(){ final String prefix=binding.getAnnotation().annotationType().getName() + "."; final String baseUriProperty=prefix + "baseUri"; final Object bu=serverConfig.getProperty(baseUriProperty); final String customBaseUri=(bu != null) ? bu.toString() : binding.baseUri(); final String configClassProperty=prefix + "configClass"; final ClientConfig cfg=resolveConfig(configClassProperty,binding); final String inheritProvidersProperty=prefix + "inheritServerProviders"; if (PropertiesHelper.isProperty(serverConfig.getProperty(inheritProvidersProperty)) || binding.inheritProviders()) { copyProviders(serverConfig,cfg); } final String propertyPrefix=prefix + "property."; Collection<String> clientProperties=serverConfig.getPropertyNames().stream().filter(property -> property.startsWith(propertyPrefix)).collect(Collectors.toSet()); for ( String property : clientProperties) { cfg.property(property.substring(propertyPrefix.length()),serverConfig.getProperty(property)); } return new ManagedClient(ClientBuilder.newClient(cfg),customBaseUri); } } ); final Value<ManagedClient> previous=managedClients.putIfAbsent(binding,client); if (previous != null) { client=previous; } } return new WebTargetValueSupplier(targetUriTemplate,client); } else { Errors.warning(this,LocalizationMessages.UNSUPPORTED_URI_INJECTION_TYPE(rawParameterType)); return null; } } }