DATAREST-583 - RepositoryRestMvcConfiguration now forwards Environment and ResourceLoader to AnnotatedTypeScanner.

This commit is contained in:
Oliver Gierke
2015-06-18 17:53:01 +02:00
parent 7bcf34ce15
commit 6831e18cde

View File

@@ -699,7 +699,11 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon
packagesToScan.add(domainType.getPackage().getName());
}
return new AnnotatedTypeScanner(Projection.class).findTypes(packagesToScan);
AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(Projection.class);
scanner.setEnvironment(applicationContext.getEnvironment());
scanner.setResourceLoader(applicationContext);
return scanner.findTypes(packagesToScan);
}
//