Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-497

Adjust visibility of RepositoryFactorySupport's getRepositoryMetadata method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Mapping / Conversion
    • Labels:
      None

      Description

      I'm working towards a customized solution that would allow me to generate Repository instances without creating concrete interfaces, thus reducing some boilerplate code in several of our products.

      Customizing the creation of repositories became tricky because RepositoryFactorySupport#getRepositoryMetadata(..) is set to default visibility. Changing this to protected allowed me to easily provide my custom repository information, allowing me to make the changes needed.

      I'm submitting a simple PR to change the visibility, but if that isn't possible could we get some sort of hook / way to override this call?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              dwelch2344 David Welch
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: