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.URL
getRootUrl()
Returns the root URL for scanning.
-
-
-
Constructor Detail
-
StandardJpaScanEnvironmentImpl
public StandardJpaScanEnvironmentImpl(PersistenceUnitDescriptor persistenceUnitDescriptor)
-
-
Method Detail
-
getRootUrl
public URL getRootUrl()
Description copied from interface:ScanEnvironment
Returns 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:
getRootUrl
in interfaceScanEnvironment
- Returns:
- The root URL
- See Also:
ScanOptions.canDetectUnlistedClassesInRoot()
-
getNonRootUrls
public List<URL> getNonRootUrls()
Description copied from interface:ScanEnvironment
Returns any non-root URLs for scanning. Can be null/empty to indicate that no non-root URL scanning should be done.- Specified by:
getNonRootUrls
in interfaceScanEnvironment
- Returns:
- The non-root URLs
- See Also:
ScanOptions.canDetectUnlistedClassesInNonRoot()
-
getExplicitlyListedClassNames
public List<String> getExplicitlyListedClassNames()
Description copied from interface:ScanEnvironment
Returns any classes which are explicitly listed as part of the "persistence unit".- Specified by:
getExplicitlyListedClassNames
in interfaceScanEnvironment
- Returns:
- The explicitly listed classes
-
getExplicitlyListedMappingFiles
public List<String> getExplicitlyListedMappingFiles()
Description copied from interface:ScanEnvironment
Returns the mapping files which are explicitly listed as part of the "persistence unit".- Specified by:
getExplicitlyListedMappingFiles
in interfaceScanEnvironment
- Returns:
- The explicitly listed mapping files.
-
-