Commit Graph

1898 Commits

Author SHA1 Message Date
Michael Simons
38b08f4e27 DATACMNS-1548 - Fix JavaDoc on AuditingHandler#setModifyOnCreation.
Original pull request: #397.
2019-06-24 10:54:39 +02:00
Christoph Strobl
7d5baebf35 DATACMNS-1514 - After release cleanups. 2019-06-14 15:12:52 +02:00
Christoph Strobl
64f1a2abbe DATACMNS-1514 - Prepare next development iteration. 2019-06-14 15:12:51 +02:00
Christoph Strobl
083e3e41a9 DATACMNS-1514 - Release version 2.2 RC1 (Moore). 2019-06-14 14:44:25 +02:00
Christoph Strobl
defee9437a DATACMNS-1514 - Prepare 2.2 RC1 (Moore). 2019-06-14 14:43:17 +02:00
Christoph Strobl
d729791238 DATACMNS-1514 - Updated changelog. 2019-06-14 14:43:07 +02:00
Christoph Strobl
b16db35660 DATACMNS-1532 - Updated changelog. 2019-06-14 13:27:14 +02:00
Christoph Strobl
84049e9f8e DATACMNS-1467 - Apply suggested documentation changes.
Original Pull Request: #332
2019-06-07 14:30:48 +02:00
Mark Paluch
687222d1fa DATACMNS-1467 - Polishing.
Tweak docs.

Original Pull Request: #332
2019-06-07 14:30:00 +02:00
Christoph Strobl
dde9a651ba DATACMNS-1467 - Decouple sync and reactive bits.
Add dedicated interfaces for sync and reactive usage.
Hide default implementation and use reflective callback method lookup.
Update documentation and add initial reference documentation snippet for store specific modules.

Original Pull Request: #332
2019-06-07 14:29:00 +02:00
Mark Paluch
52724cd5dd DATACMNS-1467 - Entity Callback API draft.
This is a draft for a possible Entity Callback API heavily inspired by Spring Framework's Application Event listeners. Entity callbacks are callbacks for entities that allow for entity modification at certain check points such as before saving an entity or after loading it.

Entity callbacks consist of a marker-interface for all entity callback types and the EntityCallbacks API to dispatch callbacks.

Entity callbacks are picked up from the ApplicationContext and invoked sequentially according to their ordering.

Usage example:

AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MyConfig.class);

SimpleEntityCallbacks callbacks = new SimpleEntityCallbacks(ctx);

PersonDocument personDocument = new PersonDocument(null, "Walter", null);
PersonDocument afterCallback = callbacks.callback(personDocument, BeforeSaveCallback.class,
		BeforeSaveCallback::onBeforeSave);

Mono<PersonDocument> afterCallback = callbacks.callbackLater(personDocument, ReactiveBeforeSaveCallback.class,
		ReactiveBeforeSaveCallback::onBeforeSave);

@Configuration
static class MyConfig {

	@Bean
	BeforeSaveCallback<Person> personCallback() {
		return object -> {
			object.setSsn(object.getFirstName().length());
			return object;
		};
	}

	@Bean
	MyReactiveBeforeSaveCallback callback() {
		return new MyReactiveBeforeSaveCallback();
	}

}

class MyReactiveBeforeSaveCallback implements ReactiveBeforeSaveCallback<Person> {

	@Override
	public Mono<Person> onBeforeSave(Person object) {

		PersonDocument result = new PersonDocument(object.getFirstName().length(), object.getFirstName(),
				object.getLastName());

		return Mono.just(result);
	}
}

Original Pull Request: #332
2019-06-07 14:26:38 +02:00
Mark Paluch
83611de861 DATACMNS-1500 - URL Cleanup. 2019-06-05 11:16:03 +02:00
Jens Schauder
467f60ffdc DATACMNS-1538 - Polishing.
Removed Hamcrest and the `ExpectedException` rule and replaced it with AssertJ.
Removed now obsolete assertions checking against old Spring Framework versions.
Formatting.

Original pull request: #396.
2019-06-05 11:00:28 +02:00
arielcarrera
098842765d DATACMNS-1538 - Repository proxy post processors in CDI.
Add support for custom repository proxy post processors in CDI.

Original pull request: #396.
2019-06-05 10:54:57 +02:00
Mark Paluch
0f1d4970ef DATACMNS-1541 - Create security policy readme. 2019-05-31 15:20:35 +02:00
Greg Turnquist
fbb364e831 DATACMNS-1536 - Fix issue branch building. 2019-05-29 08:12:28 -05:00
Greg Turnquist
23ca15e884 DATACMNS-1536 - Inline all CI commands. 2019-05-28 10:36:51 -05:00
Greg Turnquist
88cfab4bcc DATACMNS-1536 - Disable concurrent builds. 2019-05-28 08:55:50 -05:00
Mark Paluch
efa529a7a6 DATACMNS-1540 - Use thread-safe path cache in QuerydslPredicateBuilder.
We now use ConcurrentHashMap instead of HashMap to cache Path instances by PathInformation.
2019-05-27 08:41:51 +02:00
Greg Turnquist
7a89f1c11f DATACMNS-1536 - Update README status badges. 2019-05-22 14:14:09 -05:00
Greg Turnquist
4d69c824c8 DATACMNS-1536 - Only watch master branch. 2019-05-21 14:40:36 -05:00
Greg Turnquist
134fb5757f DATACMNS-1536 - Polishing. 2019-05-21 14:01:41 -05:00
Greg Turnquist
310a26f171 DATACMNS-1536 - Polishing. 2019-05-21 13:50:32 -05:00
Greg Turnquist
97e41dd153 DATACMNS-1536 - Introduce Jenkins. 2019-05-21 11:20:28 -05:00
Christoph Strobl
d6bb21d24f DATACMNS-1534 - Cache BeanFactory lookup for EvaluationContextExtension.
We now cache the BeanFactory lookup for EvaluationContextExtension within the ExtensionAwareEvalutationContextProvider to avoid (expensive) repeated context scans when creating the actual EvaluationContext.

Original pull request: #395.
2019-05-14 12:25:01 +02:00
Mark Paluch
15969ee01f DATACMNS-1531 - Updated changelog. 2019-05-13 18:19:07 +02:00
Mark Paluch
46a4e2ffe0 DATACMNS-1530 - Updated changelog. 2019-05-13 14:59:23 +02:00
Mark Paluch
dc0c2f52b1 DATACMNS-1515 - After release cleanups. 2019-05-13 12:17:53 +02:00
Mark Paluch
25db3a4ac7 DATACMNS-1515 - Prepare next development iteration. 2019-05-13 12:17:52 +02:00
Mark Paluch
428a111201 DATACMNS-1515 - Release version 2.2 M4 (Moore). 2019-05-13 11:59:50 +02:00
Mark Paluch
9934695343 DATACMNS-1515 - Prepare 2.2 M4 (Moore). 2019-05-13 11:59:04 +02:00
Mark Paluch
fe691b41a4 DATACMNS-1515 - Updated changelog. 2019-05-13 11:58:51 +02:00
Oliver Drotbohm
58119b29d8 DATACMNS-1505 - Updated changelog. 2019-05-10 14:18:08 +02:00
Oliver Drotbohm
426036f2a7 DATACMNS-1507 - Updated changelog. 2019-05-10 12:57:19 +02:00
Oliver Drotbohm
8369fd529a DATACMNS-1529 - Reactivate Travis builds for Spring Framework 5.2 snapshot. 2019-05-09 22:03:03 +02:00
Oliver Drotbohm
a45a0ded9c DATACMNS-1518 - Fixed detection of varargs overloads for SpEL expressions.
Before this commit we haven't properly resolved methods on a root object provided by an EvaluationContextExtension that was using varargs. With a vararg method, the number of parameters handed into the method is not necessary equal to the number of parameters. We previously simply skipped methods with a different number of arguments. We now try direct matches first but calculate valid varargs alternatives in case that initial lookup fails and try to match those alternatives.

This lookup is implemented in ….util.ParameterTypes now and used by ….spel.spi.Function. The latter now also handles the actual invocation of those methods properly by collecting the trailing arguments into an array.
2019-05-09 13:05:11 +02:00
Oliver Drotbohm
e31c7aed51 DATACMNS-1526 - Adapt to API changes in Spring HATEOAS. 2019-05-08 19:10:04 +02:00
David Schneider
a8e90b1932 DATACMNS-1510 - Fix phrasing in Javadoc of @Param.
Original pull request: #389.
2019-04-23 17:14:31 +02:00
Jerzy Kwiatkowski
2b6682d3b1 DATACMNS-1520 - Fix typo in Javadoc.
Original pull request: #393.
2019-04-23 17:11:18 +02:00
Christoph Strobl
21f6b1b4f7 DATACMNS-1493 - After release cleanups. 2019-04-11 12:00:20 +02:00
Christoph Strobl
7037479659 DATACMNS-1493 - Prepare next development iteration. 2019-04-11 12:00:19 +02:00
Christoph Strobl
cc19f1b46d DATACMNS-1493 - Release version 2.2 M3 (Moore). 2019-04-11 11:24:31 +02:00
Christoph Strobl
314b5c5842 DATACMNS-1493 - Prepare 2.2 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
6ac4922616 DATACMNS-1493 - Updated changelog. 2019-04-11 11:23:48 +02:00
Mark Paluch
57390eee9f DATACMNS-1511 - Upgrade to XMLBeam 1.4.16. 2019-04-08 08:37:27 +02:00
Oliver Drotbohm
a5681f637c DATACMNS-1497 - Polishing.
RepositoryBeanDefinitionRegistrarSupport now also overrides registerBeanDefinitions(AnnotationMetadata, BeanDefinitionRegistry) so that unit test in downstream modules still work.

Added defaulting of BeanNameGenerator in XmlRepositoryConfigurationSource so that we use an AnnotationBeanNameGenerator if a DefaultBeanNameGenerator is handed in.

Related tickets: spring-projects/spring-framework#22591
2019-04-03 11:53:58 +02:00
Oliver Drotbohm
1150e409ca DATACMNS-1497 - Polishing. 2019-04-03 10:21:28 +02:00
Oliver Drotbohm
753d8bbb33 DATACMNS-1497 - Configuration infrastructure now considers scanning BeanNameGenerator.
We now implement the newly introduced ImportBeanDefinitionRegistrar overload additional provided with a BeanNameGenerator configured for the import scanning. We forward this into our bean name generation infrastructure as fallback.

Related tickets: spring-projects/spring-framework#22591
2019-04-03 10:20:47 +02:00
Oliver Drotbohm
c4a51f1c24 DATACMNS-1480 - Updated changelog. 2019-04-01 20:56:25 +02:00
Oliver Drotbohm
eb79408556 DATACMNS-1464 - Updated changelog. 2019-04-01 19:36:56 +02:00