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

Use Environment specific ClassPathScanningCandidateComponentProvider constructor.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);
      provider.setEnvironment(environment);
    • Sprint:
      Lovelace M1

      Description

      This line of CustomRepositoryImplementationDetector currently creates a new ClassPathScanningCandidateComponentProvider then immediately calls setEnvironment. This has the effect of creating a StandardEnvironment which is then immediately thrown away.

      I think the following could be used instead:

      ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false, environment);
      

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            pwebb Phil Webb
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: