Commit Graph

428 Commits

Author SHA1 Message Date
Oliver Drotbohm
69ec01ac01 GH-399 - Avoid event publication completion for failed CompletableFutures.
We now explicitly handle CompletableFuture instances returned from transactional event listeners by registering the completion handlers only on success, the debug logging on failure and immediately return the decorated instance.

Previously, a failed CompletableFuture instance would still have the publication marked completed as it doesn't cause any exception being thrown and thus ultimately ending up in the code path that issues the completion.
2023-11-28 17:13:03 +01:00
Oliver Drotbohm
768103fd32 GH-393 - Prepare next development iteration. 2023-11-28 17:09:00 +01:00
Oliver Drotbohm
c6c0c0f500 GH-393 - Release version 1.1.0. 2023-11-24 18:22:06 +01:00
Oliver Drotbohm
8195f2abb0 GH-389 - Upgrade to Spring Framework 6.1. 2023-11-24 17:28:45 +01:00
Oliver Drotbohm
2a826e87c7 GH-388 - Upgrade to Spring Boot 3.2. 2023-11-24 17:27:10 +01:00
Niki Micallef
f81c155011 GH-383 - Update runtime.adoc by completing intro paragraph.
Original pull request: GH-384.
2023-11-24 15:32:45 +01:00
nkolosnjaji
2afa435722 GH-369 - Prefer MongoTemplate.findAndModify(…) over ….updateFirst(…).
Original pull request: GH-380.
2023-11-24 13:28:32 +01:00
Oliver Drotbohm
b4bb541649 GH-372 - Propagate original exception from CompletionRegisteringAdvisor.
We now propagate potentially occurring exceptions in CompletionRegisteringAdvisor to make sure the standard exception handling facilities kick in, both for synchronous and asynchronous listener invocations.

This implies that during republication we need to handle exceptions to make sure that failing synchronous listeners to not prevent the submission of subsequent publications. We currently log such exceptions into error.
2023-11-19 21:58:32 +01:00
Oliver Drotbohm
9d30fcd29c GH-373 - Fix detection of jMolecules Layered Architecture presence. 2023-11-17 17:14:17 +01:00
Oliver Drotbohm
af0323893b GH-376 - Polishing. 2023-11-17 16:46:02 +01:00
Oliver Drotbohm
37f2bdb4d6 GH-376 - Avoid initializing ApplicationModules for actuators on native images.
We now register a BeanFactoryInitializationAotProcessor to generate the actuator endpoint content representing the application module structure at AOT processing time. That file is then preferred over bootstrapping an ApplicationModules instance when bootstrapping the endpoint.
2023-11-17 16:30:16 +01:00
Oliver Drotbohm
08e837f7ec GH-375 - Avoid initialization of ApplicationModulesRuntime if possible. 2023-11-17 15:23:10 +01:00
Oliver Drotbohm
9f42ae4308 GH-368 - Polishing. 2023-11-14 11:02:21 +01:00
Oliver Drotbohm
80e53accf7 GH-368 - Integration tests. 2023-11-14 11:01:49 +01:00
Benjamin Knauer
74dda2cdae GH-368 - Consider filter handed into IncompleteEventPublications.resubmitIncompletePublications(…).
Original pull request: GH-367.
2023-11-14 11:00:41 +01:00
Oliver Drotbohm
a518707c7e GH-371 - Disable waiting for termination defaulting on Spring Framework 6.1.
We now skip the defaulting to wait of the pool shutdown termination on Spring Framework 6.1, as on that, pools implement Lifecycle and we need to wait for complete shutdown during Lifecycle.stop() already and setting the flag would delay that wait to the actual destruction phase.
2023-11-14 10:16:57 +01:00
Oliver Drotbohm
3692a209d7 GH-364 - Register reflection metadata for ApplicationListenerMethodAdapter.
The maintain general compatibility with Spring Framework 6.0, we issue a few reflective inspections on ApplicationListenerMethodAdapter. To make this work properly in native images, we now register those methods for GraalVM reflection.
2023-11-07 20:35:22 +01:00
Oliver Drotbohm
e2cc4fe2a4 GH-345 - Properly handle manually declared entity scan and autoconfiguration packages.
If Spring Modulith packages were explicitly configured as autoconfiguration or entity scan packages, the test autoconfiguration would fail as it previously attempted to manipulate an immutable list. We now create a copy of that list to fix this.
2023-11-03 20:16:38 +01:00
Oliver Drotbohm
4e453885ee GH-359 - Add Now.instant(). 2023-11-03 10:42:30 +01:00
Oliver Drotbohm
20a7474f2f GH-358 - Prepare next development iteration. 2023-11-03 09:02:46 +01:00
Oliver Drotbohm
6336e32d54 GH-358 - Release version 1.1.0-RC2. 2023-11-03 09:02:45 +01:00
Oliver Drotbohm
72e33fca5f GH-354 - Upgrade to Spring Boot 3.2 RC2.
Also, let only examples run on integration versions.
2023-11-03 08:24:11 +01:00
Oliver Drotbohm
40ab6cecfc GH-357 - Reinstantiate general compatibility with Boot 3.2 / Framework 6.1.
We now gracefully fall back to reflective invocation of the application event listener shouldHandle(…) method if we're not on Spring Framework 6.2. If we are, we invoke the newly introduced method directly.

This allows projects to upgrade to Spring Modulith 1.1 without necessarily upgrading to Boot 3.2.
2023-11-02 14:27:52 +01:00
Oliver Drotbohm
cef3ffbe7e GH-356 - Removed legacy way of tweaking autoconfiguration and entity scan packages for test runs. 2023-11-02 14:06:11 +01:00
Oliver Drotbohm
792b69c25e GH-355 - Polish Kotlin code samples in event section of reference documentation. 2023-11-02 08:26:00 +01:00
Oliver Drotbohm
e8898c1da1 GH-344 - Polishing.
Switch to DelegatingEventExternalizer APIs changed to return CompletableFuture. Imports, formatting. Drop dependencies not needed.
2023-11-02 08:22:28 +01:00
Maciej Walkowiak
d95da874bd GH-344 - Support for event externalization into AWS SNS and SQS.
Additional event externalization implementations for AWS SNS and SQS.

Original pull request: GH-350.
2023-11-02 08:22:28 +01:00
Oliver Drotbohm
0ae19fb301 GH-353 - Improvements in internal event externalization APIs.
DelegatingEventExternalizer.externalize(…) flavors now return a CompletableFuture to allow the target APIs to use asynchronous message sending and to transparently return a result from those invocations.
2023-11-01 23:48:06 +01:00
Oliver Drotbohm
e4190c47aa GH-346 - Allow explicit declaration of identifier in @ApplicationModuleListener. 2023-11-01 23:48:04 +01:00
Oliver Drotbohm
e5ca4f7183 GH-349 - Register parameters of methods annotated with @TransactionalEventListener for reflection. 2023-10-27 13:45:25 +02:00
Oliver Drotbohm
889c849492 GH-348 - Avoid eager reference to runtime artifact from core starter.
Removed the inclusion of the spring-modulith-runtime artifact from the …-starter-core one to avoid issues in native images in a Spring Modulith default setup. As the artifact is still needed to support ApplicationModuleInitializer implementations, we now explicitly check for the presence of those and verify the artifact is actually available and hint the user at explicitly adding it if missing.
2023-10-27 09:41:26 +02:00
Oliver Drotbohm
576b8f5074 GH-342 - Allow disabling event externalization.
We now expose spring.modulith.events.externalization.enabled that can be set to false to disable the event externalization completely. Useful in test cases, for example.
2023-10-23 12:22:42 +02:00
Oliver Drotbohm
69fd64dbf7 GH-341 - Prepare next development iteration. 2023-10-23 09:12:13 +02:00
Oliver Drotbohm
d4cde409a1 GH-341 - Release version 1.1.0-RC1. 2023-10-23 09:12:13 +02:00
Oliver Drotbohm
00abfca27c GH-330 - Upgrade to Spring Framework 6.1 RC1 for Javadoc. 2023-10-23 08:46:47 +02:00
Oliver Drotbohm
b829f4e30b GH-315 - Polishing. 2023-10-23 08:23:29 +02:00
Rohan Sankhe
d79ade0a37 GH-329 - Upgrade examples to Spring Boot 3.2 RC1, too. 2023-10-21 21:51:08 +02:00
Oliver Drotbohm
668f23d97c GH-329 - Make integration builds only check Boot 3.2 compatibility.
As we now rely on API that has been introduced in Spring Framework 6.1 RC1.
2023-10-21 21:47:03 +02:00
Oliver Drotbohm
7ca64de924 GH-329 - Polish Javadoc. 2023-10-20 18:35:59 +02:00
Oliver Drotbohm
2241ae1960 GH-329 - Upgrade to Spring Boot 3.2 RC1.
Remove workaround of calling ApplicationListenerMethodAdapter.shouldHandle(…) reflectively.
2023-10-20 16:44:19 +02:00
Oliver Drotbohm
0189028faa GH-337 - Added spring-modulith-events-api to BOM. 2023-10-20 14:39:31 +02:00
Oliver Drotbohm
4a91ad4bc8 GH-335 - Moments now implements Now. 2023-10-19 17:22:54 +02:00
Devashish Bhattacharjee
9b79e09729 GH-256 - Added Kotlin variant for Java code. 2023-10-17 10:22:02 +02:00
Oliver Drotbohm
6653bcb527 GH-282 - Refactor @Modulith to compose @SpringBootApplication. 2023-10-16 22:58:41 +02:00
Oliver Drotbohm
752b5d7cf3 GH-332 - Avoid proxying configuration classes for observability purposes.
We now skip configuration classes for observability-related proxying as it's hard to detect those during the ProxyFactory setup to configure target class proxying. Also, configuration classes are usually no targets of inter-module communication and thus don't need to be observed at all.
2023-10-16 21:11:30 +02:00
Oliver Drotbohm
1482ba01f5 GH-310 - Revert "Remove time zone from Postgres event publication schema."
This reverts commit 19457cd736. Related ticket: GH-306.
2023-10-16 14:02:14 +02:00
Oliver Drotbohm
560315ae14 GH-315 - Avoid processing infrastructure beans in observability infrastructure.
We now skip infrastructure role beans during the processing of beans that could be subject to inter-module interaction observability. Previously, we could accidentally trigger a dependency cycle if the ModuleTracingBeanPostProcessor triggered the initial creation of AutoConfigurationPackages as that would then trigger the PostProcessor in turn which would try to lookup the ACP bean again to determine whether it should post process that to apply observability.
2023-10-16 13:38:11 +02:00
Oliver Drotbohm
cc99f9d357 GH-325 - Add mission statement to reference documentation. 2023-10-16 08:32:26 +02:00
Oliver Drotbohm
51f205af59 GH-324 - Add Neo4j-specific configuration properties to reference documentation. 2023-10-16 08:31:35 +02:00
Oliver Drotbohm
86f745e5b7 GH-317 - Fix Javadoc. 2023-10-16 08:28:16 +02:00