/** * Creates a new {@link CustomRepositoryImplementationDetector} with the given {@link Environment} and * {@link ResourceLoader}. Calls to {@link #detectCustomImplementation(ImplementationLookupConfiguration)} will issue * scans for * * @param environment must not be {@literal null}. * @param resourceLoader must not be {@literal null}. */ public CustomRepositoryImplementationDetector(Environment environment, ResourceLoader resourceLoader) { Assert.notNull(environment, "Environment must not be null!"); Assert.notNull(resourceLoader, "ResourceLoader must not be null!"); this.environment = environment; this.resourceLoader = resourceLoader; this.implementationCandidates = Lazy.empty(); }