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

CustomRepositoryImplementationDetector ignores excludeFilters

    XMLWordPrintable

    Details

      Description

      org.springframework.data.repository.config.CustomRepositoryImplementationDetector#detectCustomImplementation scans all base packages, but ignores excludeFilters.

      This leads e.g. to problems if there are 2 classes with the same name on the classpath, but one of them should be ignored, e.g.

      xxx.MyRepository
      xxx.impl.MyRepositoryImpl
      xxx.whatever.MyRepositoryImpl

      I've set the excludeFilters for xxx.whatever.*, but still get:

      Caused by: java.lang.IllegalStateException: Ambiguous custom implementations detected! Found xxx.impl.MyRepositoryImpl,xxx.whatever.MyRepositoryImpl but expected a single implementation!

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            prietzler Peter Rietzler
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: