Class PersistenceManagedTypesScanner
java.lang.Object
org.springframework.orm.jpa.persistenceunit.PersistenceManagedTypesScanner
Scanner of
PersistenceManagedTypes
.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionPersistenceManagedTypesScanner
(ResourceLoader resourceLoader) Create a newPersistenceManagedTypesScanner
for the given resource loader.PersistenceManagedTypesScanner
(ResourceLoader resourceLoader, ManagedClassNameFilter managedClassNameFilter) Create a newPersistenceManagedTypesScanner
for the given resource loader. -
Method Summary
Modifier and TypeMethodDescriptionScan the specified packages and return aPersistenceManagedTypes
that represents the result of the scanning.
-
Constructor Details
-
PersistenceManagedTypesScanner
Create a newPersistenceManagedTypesScanner
for the given resource loader.- Parameters:
resourceLoader
- theResourceLoader
to use
-
PersistenceManagedTypesScanner
public PersistenceManagedTypesScanner(ResourceLoader resourceLoader, @Nullable ManagedClassNameFilter managedClassNameFilter) Create a newPersistenceManagedTypesScanner
for the given resource loader.- Parameters:
resourceLoader
- theResourceLoader
to usemanagedClassNameFilter
- an optional predicate to filter entity classes- Since:
- 6.1.4
-
-
Method Details
-
scan
Scan the specified packages and return aPersistenceManagedTypes
that represents the result of the scanning.- Parameters:
packagesToScan
- the packages to scan- Returns:
- the
PersistenceManagedTypes
instance
-