1253 Commits

Author SHA1 Message Date
Spring Operator
c5ba297654 DATACMNS-1500 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 543 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #369
2019-03-22 10:53:57 +01:00
Spring Operator
4c1c1fe683 DATACMNS- 1500 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences

Original pull request: #347.
2019-03-18 17:27:56 +01:00
Oliver Gierke
ee98c0c527 DATACMNS-1155 - Updated changelog. 2017-10-11 19:01:32 +02:00
Oliver Gierke
efdfee50fe DATACMNS-901 - AbstractMappingContext publishes entity added events outside the write lock.
Previously, the publication of the event that indicated a PersistentEntity having been added to it took place before the write lock over the entities had been released. We now keep the lock smaller and publish the addition event *after* the lock has been released.
2017-10-10 16:35:58 +02:00
stonio
e9b1ec7324 DATACMNS-1193 - Fixed typo in JavaDoc and reference documentation of PageableDefaults.
Original pull request: #218.
2017-10-10 14:53:12 +02:00
Mark Paluch
44b10fc063 DATACMNS-1156 - Updated changelog. 2017-10-02 11:41:22 +02:00
Oliver Gierke
e2ab329773 DATACMNS-1172 - Polishing.
Tweaked newly introduced RepositoryConfiguration.getImplementationBasePackage() to not require a parameter but use internal information instead (the repository interface in DefaultRepositoryConfiguration).

Original pull request: #248.
2017-09-27 13:15:51 +02:00
Mark Paluch
da0d964d2e DATACMNS-1172 - Limit repository custom implementation scanning to repository interface packages.
Custom repository implementation scan uses the repository interface package and its subpackages and no longer scans all configured base packages. Scan for fragment implementations defaults to the fragment interface package. Using the interface package for scanning aligns the behavior with the documentation.

Declaring the implementation along with the interface in the same package is an established design pattern allowing to limit the scanning scope. A limited scope improves scanning performance as it can skip elements on the classpath, that do not provide that particular package.

Previously, we scanned for implementations using the configured base packages that were also used to discover repository interfaces. These base packages can be broader for applications that spread repository interfaces across multiple packages.

Original pull request: #248.
2017-09-27 13:15:44 +02:00
Oliver Gierke
b848d6bbf1 DATACMNS-1130 - Updated changelog. 2017-09-11 17:42:39 +02:00
Mark Paluch
1925ba6c88 DATACMNS-1131 - Updated changelog. 2017-09-11 12:43:49 +02:00
Johnny Lim
42e3bbacc4 DATACMNS-1153 - Removed unreachable assertion in XmlRepositoryConfigurationSource.
Original pull request: #236.
2017-09-07 15:22:53 +02:00
Oliver Gierke
e9eb672576 DATACMNS-1139 - AbstractPersistentProperty.getRawType() now correctly resolves generics.
We're now favoring the generic TypeInformation over trying to resolve the property type via field or PropertyDescriptor as only the former does proper generic type resolution.
2017-08-14 13:40:57 +02:00
Oliver Gierke
1725cbaec1 DATACMNS-1138 - TypeInformation.specialize(…) now only specializes unresolved parameterized types.
Type specialization - i.e. enrichment of a raw type with a current generic context - is now only done if the current type is not yet resolved completely. This allows wildcarded target references to just fall back to the type to specialize, which will then by definition carry more generics information than the one to be specialized.
2017-08-11 15:54:45 +02:00
Oliver Gierke
ddbedb7cd7 DATACMNS-1135 - Fixed generics lookup for recursively nested container references.
Revert the merging of a parent type's type variable map and only apply the locally available declared generics in case of parameterized types. Moved that augmentation into ParameterizedTypeInformation.
2017-08-03 11:38:02 +02:00
Oliver Gierke
c5da91cf61 DATACMNS-1127 - Updated changelog. 2017-07-27 00:48:51 +02:00
Oliver Gierke
7e2d3d3ee7 DATACMNS-1128 - Updated changelog. 2017-07-25 16:15:40 +02:00
Oliver Gierke
8882c1b12b DATACMNS-1090 - Updated changelog. 2017-07-25 10:03:54 +02:00
Oliver Gierke
9a3667fae4 DATACMNS-1084 - Updated changelog. 2017-07-24 22:20:36 +02:00
Oliver Gierke
3503f37fb8 DATACMNS-1085 - Fixed typos in Javadoc.
Original pull request: #229.
2017-07-24 10:36:39 +02:00
Oliver Gierke
aa9cfc60ef DATACMNS-1121 - ProxyProjectionFactory now returns instance as is if it implements the target.
If you previously asked ProxyProjectionFactory for a proxy of an interface which the target instance already implements, it created a proxy although it could've returned the instance as is. It's now actually doing that avoiding superfluous proxy creation.
2017-07-20 14:59:26 +02:00
Oliver Gierke
24a39e44ea DATACMNS-1115 - Improve RepositoryBeanNameGenerator to properly resolve bean names for indexed BeanDefinitions.
Previously, RepositoryBeanNameGenerator applied the custom bean name lookup if the BeanDefinition given was not a ScannedGenericBeanDefinition. That in turn had been the case for custom implementation classes that were obtained through classpath scanning. With Spring 5 an index file can be used by the scanner, which in turn will cause AnnotatedGenericBeanDefinition instances being returned. That caused the code path to lookup the first constructor argument to kick in (usually used to obtain the repository interface from repository factory beans) and cause a NullPointerException.

We now forward AnnotatedBeanDefinitions as is and only apply the custom lookup for everything else, i.e. the bean definitions used for the factories.
2017-07-19 08:44:24 +02:00
Oliver Gierke
864204f647 DATACMNS-1102 - Reuse ConversionService in ProjectingMethodInterceptors created by ProxyProjectionFactory.
Applied the same to internals of MapDataBinder.
2017-07-06 11:34:45 +02:00
Oliver Gierke
899913cdf6 DATACMNS-1102 - Avoid superfluous recreation of ConversionService for projections.
For repository query methods with a dynamic projection parameter, the ResultProcessor is recreated with the type handed to the method. This results in recreation of the ProjectingConverter, which previously recreated a DefaultConversionService instance (for fallback conversions), which is rather expensive due to the reflection lookups checking for the presence of libraries on the classpath.

This is now avoided by using copying methods that reuse the initially created DefaultConversionService.
2017-07-02 21:43:10 +02:00
Oliver Gierke
35217ddce3 DATACMNS-1098 - Polishing.
Removed obsolete Spring version check. Formatting.
2017-06-26 16:23:47 +02:00
Oliver Gierke
21c32f3502 DATACMNS-1098 - RepositoryComponentScanner now exposes BeanDefinitionRegistry.
We now override ClassPathScanningCandidateComponentProvider's getRegistry() to make sure custom conditions on repository candidates can use the currently available BeanDefinitionRegistry in their implementations. To achieve that we forward the BeanDefinitionRegistry at hand through the configuration infrastructure (both XML and annotation side of things).
2017-06-26 16:23:45 +02:00
Oliver Gierke
dd1c4d6935 DATACMNS-1095 - Made ObjectInstantiator public to avoid IllegalAccessErrors.
ObjectInstantiator needs to be declared public as otherwise loading the implementation class fails as it doesn't have access to the (package) private interface in a different classloader.
2017-06-21 17:33:46 +02:00
Mark Paluch
cd8202861b DATACMNS-1060 - Updated changelog. 2017-06-14 17:34:57 +02:00
Mark Paluch
85f91dcd3c DATACMNS-1047 - Updated changelog. 2017-06-09 09:37:59 +02:00
Mark Paluch
8990ce1344 DATACMNS-1046 - After release cleanups. 2017-06-07 11:50:57 +02:00
Mark Paluch
ebfc8fcaf2 DATACMNS-1046 - Prepare next development iteration. 2017-06-07 11:50:56 +02:00
Mark Paluch
4b068db12f DATACMNS-1046 - Release version 1.12.11 (Hopper SR11). 2017-06-07 11:11:07 +02:00
Mark Paluch
1e4c172133 DATACMNS-1046 - Prepare 1.12.11 (Hopper SR11). 2017-06-07 11:10:24 +02:00
Mark Paluch
878b1fafca DATACMNS-1046 - Updated changelog. 2017-06-07 11:10:16 +02:00
Oliver Gierke
771969d7c4 DATACMNS-1074 - Removed reference to JDK 8 method.
Method.isDefault() is JDK 8 API. Replaced by our JDK 6 equivalent in ReflectionUtils.

Original pull request: #221.
2017-06-07 10:52:50 +02:00
Oliver Gierke
077d66a9d2 DATACMNS-1074 - Backport of MethodHandle lookup caching.
We now cache method handles after lookup on a best-effort basis to reuse them and prevent subsequent lookups as a MethodHandle lookup is expensive, in particular the lookup uses exceptions as control flow [0] during speculative lookup [1].

[0] http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/5b86f66575b7/src/share/classes/java/lang/invoke/MemberName.java#l978
[1] http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-August/042770.html

Original pull request: #221.
2017-06-07 10:44:48 +02:00
Roman Rodov
6b555263dd DATACMNS-1082 - Skip synthetic constructors.
Constructor discovery no longer considers synthetic constructors for preferred constructor.

Original pull request: #225
2017-06-07 09:14:46 +02:00
Oliver Gierke
9b551a2b90 DATACMNS-1062 - We now run the Maven build with -U on Travis.
That's to make sure we always see latest changes in esp. the build parent.
2017-05-11 10:19:18 +02:00
Mark Paluch
431c0d5a78 DATACMNS-1037 - Updated changelog. 2017-05-09 11:36:15 +02:00
Oliver Gierke
9e91e8c2cb DATACMNS-1045 - After release cleanups. 2017-04-19 21:02:15 +02:00
Oliver Gierke
d4e7071780 DATACMNS-1045 - Prepare next development iteration. 2017-04-19 21:02:13 +02:00
Oliver Gierke
f386cd6e47 DATACMNS-1045 - Release version 1.12.10 (Hopper SR10). 2017-04-19 20:36:43 +02:00
Oliver Gierke
7ab38fa38f DATACMNS-1045 - Prepare 1.12.10 (Hopper SR10). 2017-04-19 20:36:06 +02:00
Oliver Gierke
f6b7f11f93 DATACMNS-1045 - Updated changelog. 2017-04-19 20:35:57 +02:00
Oliver Gierke
101de20fb4 DATACMNS-1044 - Updated changelog. 2017-04-19 20:01:41 +02:00
Oliver Gierke
a6e69d084d DATACMNS-1004 - After release cleanups. 2017-04-19 13:01:04 +02:00
Oliver Gierke
031829cf8a DATACMNS-1004 - Prepare next development iteration. 2017-04-19 13:01:01 +02:00
Oliver Gierke
1eee146680 DATACMNS-1004 - Release version 1.12.9 (Hopper SR9). 2017-04-19 12:38:28 +02:00
Oliver Gierke
a558df8d8d DATACMNS-1004 - Prepare 1.12.9 (Hopper SR9). 2017-04-19 12:37:52 +02:00
Oliver Gierke
ebd7f40601 DATACMNS-1004 - Updated changelog. 2017-04-19 12:37:37 +02:00
Oliver Gierke
bc7a0ba0cd DATACMNS-1003 - Updated changelog. 2017-04-19 11:50:41 +02:00