接口 ScanEnvironment
-
- 所有已知实现类:
StandardJpaScanEnvironmentImpl
public interface ScanEnvironmentDescribes the environment in which the scan will occur. Note that much of this comes from the PU in JPA sense. This is intended as an abstraction over the PU in JPA cases, as well as a delegate allowing usage in non-JPA cases. With the planned move to unify the cfg.xml and persistence.xml schemas (like we are doing with hbm.xml and orm.xml) this becomes less needed (at least parts of it). After unification, I think the biggest difference is that we will not need to pass ScanEnvironment into the MetadataSources/MetadataBuilder while for the time being we will need to.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
getRootUrl
URL getRootUrl()
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).- 返回:
- The root URL
- 另请参阅:
ScanOptions.canDetectUnlistedClassesInRoot()
-
getNonRootUrls
List<URL> getNonRootUrls()
Returns any non-root URLs for scanning. Can be null/empty to indicate that no non-root URL scanning should be done.- 返回:
- The non-root URLs
- 另请参阅:
ScanOptions.canDetectUnlistedClassesInNonRoot()
-
getExplicitlyListedClassNames
List<String> getExplicitlyListedClassNames()
Returns any classes which are explicitly listed as part of the "persistence unit".- 返回:
- The explicitly listed classes
-
-