You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As of spring-boot 2.6 it is no longer allowed to have cycles during dependency injection. Before, spring-boot tried to resolve cycles as far as possible (which seemed to work for repo-core) but it doesn't anymore. Most of the existing cycles could be resolved in repo-core v1.0.3, but some cleanup will be required.
This bug mostly affects the way of using RepoBaseConfiguration. This class is used as carrier for all properties and beans, which are then propagated to each other and used as required. While creating this Bean, cycles may occur as the order of creating RepoBaseConfiguration matters.
E.g., the IRepoStorageService has to be identified and configured before IRepoVersioningService is configured, as IRepoVersioningService uses IRepoStorageService. Otherwise, an error will be thrown at startup time.
A solution would only be implementing a proper dependency injection, which probably requires a lot of restructuring and should be part of the next major release.
The text was updated successfully, but these errors were encountered:
Describe the bug
As of spring-boot 2.6 it is no longer allowed to have cycles during dependency injection. Before, spring-boot tried to resolve cycles as far as possible (which seemed to work for repo-core) but it doesn't anymore. Most of the existing cycles could be resolved in repo-core v1.0.3, but some cleanup will be required.
This bug mostly affects the way of using RepoBaseConfiguration. This class is used as carrier for all properties and beans, which are then propagated to each other and used as required. While creating this Bean, cycles may occur as the order of creating RepoBaseConfiguration matters.
E.g., the IRepoStorageService has to be identified and configured before IRepoVersioningService is configured, as IRepoVersioningService uses IRepoStorageService. Otherwise, an error will be thrown at startup time.
A solution would only be implementing a proper dependency injection, which probably requires a lot of restructuring and should be part of the next major release.
The text was updated successfully, but these errors were encountered: