- 01 8月, 2019 8 次提交
-
-
由 Phillip Webb 提交于
Deprecate all mutation methods in `MethodParameter` in favor of factory methods that return a new instance. Existing code that previously relied on mutation has been updated to use the replacement methods. Closes gh-23385
-
由 Phillip Webb 提交于
Update `AbstractAutowireCapableBeanFactory.getTypeForFactoryBean` to use fallback to `determineTargetType` if the factory bean definition does not have a resolved class. This is required for the case where a `@Configuration` class is picked up via component scanning and has a bean type that has not yet been resolved. Closes gh-23338
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Sam Brannen 提交于
Prior to this commit, the new `TYPE_HIERARCHY_AND_ENCLOSING_CLASSES` annotation search strategy failed to find annotations on enclosing classes if the source class was a nested class that itself had no annotations present. This commit fixes this by adding special logic to AnnotationsScanner's isWithoutHierarchy() method to properly support nested classes. Closes gh-23378
-
由 Sam Brannen 提交于
-
- 31 7月, 2019 14 次提交
-
-
由 Phillip Webb 提交于
Add a `TYPE_HIERARCHY_AND_ENCLOSING_CLASSES` annotation search strategy that can be used to search the full type hierarchy as well as any enclosing classes. Closes gh-23378
-
由 Phillip Webb 提交于
Rename `SearchStrategy.EXHAUSTIVE` from `MergedAnnotations` to `SearchStrategy.TYPE_HIERARCHY` See gh-23378
-
由 Juergen Hoeller 提交于
-
由 Phillip Webb 提交于
Update code that's often called so that zero length array results use a single shared static constant, rather than a new instance for each call. Closes gh-23340
-
由 Phillip Webb 提交于
Update `getTypeForFactoryBean` detection so that a bean definition attribute can be used to supply the result. This commit allows projects such as Spring Data to provide the result that would be supplied by `getObjectType` early so that we don't need to initialize the `FactoryBean` unnecessarily. Closes gh-23338
-
由 Phillip Webb 提交于
Update the `FactoryBean` type prediction logic (primarily in the `DefaultListableBeanFactory`) so that generic type information is considered when calling `getBeanNamesForType` on a non-frozen configuration. Calling `getBeanNamesForType` with `allowEagerInit` disabled will now detect `FactoryBean` variants as long as generic type information is available in either the class or the factory method return type. Closes gh-23338
-
由 Phillip Webb 提交于
Add an additional cache to the `RootBeanDefinition` to save recalculating the result of `isFactoryBean`. Closes gh-23337
-
由 Phillip Webb 提交于
Update the logic in `AbstractBeanFactory` so that caches from merged bean definitions remain whenever possible. Prior to this commit, all merged bean definitions would be completely removed after bean post processing in case a processor changed the bean type. It's fairly unlikely these days that the bean type will actually change, so instead we now compare a subset of the old cached properties against the newly created definition. Only if key properties have changed do we now discard the older cached values. Closes gh-23336
-
由 Phillip Webb 提交于
Update `ListableBeanFactory` and `BeanFactoryUtils` to add the missing `getBeanNamesForType` methods that accept a `ResolvableType` rather than a `Class`. This completes the work started in 778a0194. Closes gh-23335
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
See gh-23366
-
由 Arjen Poutsma 提交于
-
- 30 7月, 2019 18 次提交
-
-
由 Arjen Poutsma 提交于
Added support for status codes that do not occur in HttpStatus in DefaultClientResponseBuilder and made ClientResponse::statusCode ClientHttpResponse::getStatusCode @Nullable. Closed gh-23366
-
由 Juergen Hoeller 提交于
See gh-23384
-
由 Juergen Hoeller 提交于
See gh-23352
-
由 Juergen Hoeller 提交于
-
由 Rossen Stoyanchev 提交于
Expecting data first and metadata second aligns better with the single arg variant that accepts data. This is also consistent with the RSocket API in the create methods of ByteBufPayload and DefaultPayload.
-
由 Rossen Stoyanchev 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Closes gh-23352
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Closes gh-23384
-
由 Arjen Poutsma 提交于
-
由 Arjen Poutsma 提交于
- Add onRawStatus to WebClient.ResponseSpec, allowing users to deal with raw status codes that are not in HttpStatus. - No longer throw an exception status codes not in HttpStatus. Closes gh-23367
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
The isJavaIdentifier check is not really required, but also seems intuitive for variables to be Java identifier-like. This commit relaxes the constraint a bit by also allowing "-". Closes gh-23101
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Closes gh-23358
-
由 Stephane Nicoll 提交于
-