Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Apr 22, 2024

In order to register the lock provider without directly initializing required dependencies through DI we need to register it lazy.

As the LockManager is only handling registration/delegation of method calls it doesn't come with its own dependencies and therefore is enough to handle this. We could also move this to a dedicated registerLockProvider method but as of now there is just one use case with the files_lock app and this seems too little to justify for a explicit registration method.

Contributes to #44951

Required for nextcloud/files_lock#297

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the perf/44951/lock-provider branch from 8079df9 to ff3fc85 Compare April 30, 2024 20:28
@juliusknorr juliusknorr self-assigned this May 10, 2024
@juliusknorr juliusknorr requested a review from hweihwang May 13, 2024 08:19
@juliusknorr juliusknorr merged commit c4e32d3 into master May 13, 2024
@juliusknorr juliusknorr deleted the perf/44951/lock-provider branch May 13, 2024 12:21
/**
* @throws PreConditionNotMetException if there is already a lock provider registered
* @since 24.0.0
* @deprecated 30.0.0 Use registerLazyLockProvider
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

juliusknorr added a commit to nextcloud/documentation that referenced this pull request Jul 19, 2024
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants