Package org.hibernate.jpa.boot.internal
Class StandardJpaScanEnvironmentImpl
- java.lang.Object
-
- org.hibernate.jpa.boot.internal.StandardJpaScanEnvironmentImpl
-
- All Implemented Interfaces:
ScanEnvironment
public class StandardJpaScanEnvironmentImpl extends Object implements ScanEnvironment
Implementation of ScanEnvironment leveraging a JPA deployment descriptor.
-
-
Constructor Summary
Constructors Constructor Description StandardJpaScanEnvironmentImpl(PersistenceUnitDescriptor persistenceUnitDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getExplicitlyListedClassNames()Returns any classes which are explicitly listed as part of the "persistence unit".List<String>getExplicitlyListedMappingFiles()Returns the mapping files which are explicitly listed as part of the "persistence unit".List<URL>getNonRootUrls()Returns any non-root URLs for scanning.URLgetRootUrl()Returns the root URL for scanning.
-
-
-
Constructor Detail
-
StandardJpaScanEnvironmentImpl
public StandardJpaScanEnvironmentImpl(PersistenceUnitDescriptor persistenceUnitDescriptor)
-
-
Method Detail
-
getRootUrl
public URL getRootUrl()
Description copied from interface:ScanEnvironmentReturns the root URL for scanning. Can benull, indicating that no root URL scanning should be done (aka, if maybe a root URL is not known).- Specified by:
getRootUrlin interfaceScanEnvironment- Returns:
- The root URL
- See Also:
ScanOptions.canDetectUnlistedClassesInRoot()
-
getNonRootUrls
public List<URL> getNonRootUrls()
Description copied from interface:ScanEnvironmentReturns any non-root URLs for scanning. Can be null/empty to indicate that no non-root URL scanning should be done.- Specified by:
getNonRootUrlsin interfaceScanEnvironment- Returns:
- The non-root URLs
- See Also:
ScanOptions.canDetectUnlistedClassesInNonRoot()
-
getExplicitlyListedClassNames
public List<String> getExplicitlyListedClassNames()
Description copied from interface:ScanEnvironmentReturns any classes which are explicitly listed as part of the "persistence unit".- Specified by:
getExplicitlyListedClassNamesin interfaceScanEnvironment- Returns:
- The explicitly listed classes
-
getExplicitlyListedMappingFiles
public List<String> getExplicitlyListedMappingFiles()
Description copied from interface:ScanEnvironmentReturns the mapping files which are explicitly listed as part of the "persistence unit".- Specified by:
getExplicitlyListedMappingFilesin interfaceScanEnvironment- Returns:
- The explicitly listed mapping files.
-
-