Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature for configuring storage before it is created in a Spring Boot application, along with some related changes. The most important changes include the addition of a
StorageContextInitializer
interface, its implementation in an example class, and modifications to theEmbeddedStorageFoundationFactory
to support this new feature.New feature for storage configuration:
docs/modules/misc/pages/integrations/spring-boot.adoc
: Added documentation for configuring storage before it is created usingStorageContextInitializer
.examples/spring-boot3-simple/src/main/java/org/microstream/spring/boot/example/simple/initializer/StorageContextInitializerImpl.java
: Added an example implementation ofStorageContextInitializer
to demonstrate how to execute code before storage initialization.Modifications to support the new feature:
integrations/spring-boot3/src/main/java/org/eclipse/store/integrations/spring/boot/types/factories/EmbeddedStorageFoundationFactory.java
: Updated to implementApplicationContextAware
and call custom storage initialization logic if available. [1] [2] [3] [4] [5]integrations/spring-boot3/src/main/java/org/eclipse/store/integrations/spring/boot/types/initializers/StorageContextInitializer.java
: Added a new interface for storage context initializers to provide custom initialization logic.