Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move RepositoryMethodContext to repository.core package #3176

Closed
wants to merge 4 commits into from

Commits on Oct 15, 2024

  1. Prepare issue branch

    christophstrobl committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    b403212 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Move RepositoryMethodContext to repository.core package.

    RepositoryMethodContext are now made available for dependency injection via RepositoryConfigurationExtensionSupport.registerBeansForRoot(…). Moved RMC into repository.core package (previously repository.core.support) and only expose factory methods on DefaultRepositoryMethodContext. DRMC also exposes a injection proxy lookup method that creates a proxy equipped with a TargetSource delegating to DRMC.getInstance() (previously ….getContext()). An additional, static DRMC.forMethod(…) allows the creation of a default instance for testing purposes.
    
    Rename getRepository() to getMetadata() on RMC.
    
    Fixes GH-3175.
    odrotbohm authored and mp911de committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    58e86fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e9e325 View commit details
    Browse the repository at this point in the history
  3. Polishing.

    Avoid nullability in RepositoryMethodContextHolder.getContext(). Introduce shortcut in RepositoryMethodContext to obtain the current thread-local context. Update documentation.
    mp911de committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    032515d View commit details
    Browse the repository at this point in the history