类 BootstrapContextImpl
- java.lang.Object
-
- org.hibernate.boot.internal.BootstrapContextImpl
-
- 所有已实现的接口:
BootstrapContext
public class BootstrapContextImpl extends Object implements BootstrapContext
- 作者:
- Andrea Boriero
-
-
构造器概要
构造器 构造器 说明 BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddAttributeConverterInfo(AttributeConverterInfo info)voidaddAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)voidaddCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)voidaddSqlFunction(String functionName, SQLFunction function)ArchiveDescriptorFactorygetArchiveDescriptorFactory()Access to the ArchiveDescriptorFactory to be used for scanningCollection<AttributeConverterInfo>getAttributeConverters()Access to collected AttributeConverter definitions.Collection<AuxiliaryDatabaseObject>getAuxiliaryDatabaseObjectList()Access to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder.Collection<CacheRegionDefinition>getCacheRegionDefinitions()Access to all explicit cache region mappings.ClassLoaderAccessgetClassLoaderAccess()ClassmateContextgetClassmateContext()Access to the shared Classmate objects used throughout Hibernate's bootstrap process.org.jboss.jandex.IndexViewgetJandexView()Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.MutableJpaCompliancegetJpaCompliance()ClassLoadergetJpaTempClassLoader()Access the temporary ClassLoader passed to us as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.MetadataBuildingOptionsgetMetadataBuildingOptions()org.hibernate.annotations.common.reflection.ReflectionManagergetReflectionManager()Retrieve the Hibernate Commons Annotations ReflectionManager to use.ScanEnvironmentgetScanEnvironment()Access to the environment for scanning.ObjectgetScanner()Access to the Scanner to be used for scanning.ScanOptionsgetScanOptions()Access to the options to be used for scanningStandardServiceRegistrygetServiceRegistry()Map<String,SQLFunction>getSqlFunctions()Access to any SQL functions explicitly registered with the MetadataBuilder.TypeConfigurationgetTypeConfiguration()booleanisJpaBootstrap()voidmarkAsJpaBootstrap()Indicates that bootstrap was initiated from JPA bootstrapping.voidrelease()Releases the "bootstrap only" resources held by this BootstrapContext.
-
-
-
构造器详细资料
-
BootstrapContextImpl
public BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)
-
-
方法详细资料
-
getServiceRegistry
public StandardServiceRegistry getServiceRegistry()
- 指定者:
getServiceRegistry在接口中BootstrapContext
-
getJpaCompliance
public MutableJpaCompliance getJpaCompliance()
- 指定者:
getJpaCompliance在接口中BootstrapContext
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
- 指定者:
getTypeConfiguration在接口中BootstrapContext
-
getMetadataBuildingOptions
public MetadataBuildingOptions getMetadataBuildingOptions()
- 指定者:
getMetadataBuildingOptions在接口中BootstrapContext
-
isJpaBootstrap
public boolean isJpaBootstrap()
- 指定者:
isJpaBootstrap在接口中BootstrapContext
-
markAsJpaBootstrap
public void markAsJpaBootstrap()
从接口复制的说明:BootstrapContextIndicates that bootstrap was initiated from JPA bootstrapping. Internallyfalseis the assumed value. We only need to call this to mark that as true.- 指定者:
markAsJpaBootstrap在接口中BootstrapContext
-
getJpaTempClassLoader
public ClassLoader getJpaTempClassLoader()
从接口复制的说明:BootstrapContextAccess the temporary ClassLoader passed to us as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.- 指定者:
getJpaTempClassLoader在接口中BootstrapContext- 返回:
- The tempo ClassLoader
-
getClassLoaderAccess
public ClassLoaderAccess getClassLoaderAccess()
- 指定者:
getClassLoaderAccess在接口中BootstrapContext
-
getClassmateContext
public ClassmateContext getClassmateContext()
从接口复制的说明:BootstrapContextAccess to the shared Classmate objects used throughout Hibernate's bootstrap process.- 指定者:
getClassmateContext在接口中BootstrapContext- 返回:
- Access to the shared Classmate delegates.
-
getArchiveDescriptorFactory
public ArchiveDescriptorFactory getArchiveDescriptorFactory()
从接口复制的说明:BootstrapContextAccess to the ArchiveDescriptorFactory to be used for scanning- 指定者:
getArchiveDescriptorFactory在接口中BootstrapContext- 返回:
- The ArchiveDescriptorFactory
-
getScanOptions
public ScanOptions getScanOptions()
从接口复制的说明:BootstrapContextAccess to the options to be used for scanning- 指定者:
getScanOptions在接口中BootstrapContext- 返回:
- The scan options
-
getScanEnvironment
public ScanEnvironment getScanEnvironment()
从接口复制的说明:BootstrapContextAccess to the environment for scanning. Consider this temporary; see discussion onScanEnvironment- 指定者:
getScanEnvironment在接口中BootstrapContext- 返回:
- The scan environment
-
getScanner
public Object getScanner()
从接口复制的说明:BootstrapContextAccess to the Scanner to be used for scanning. Can be:- A Scanner instance
- A Class reference to the Scanner implementor
- A String naming the Scanner implementor
- 指定者:
getScanner在接口中BootstrapContext- 返回:
- The scanner
-
getReflectionManager
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
从接口复制的说明:BootstrapContextRetrieve the Hibernate Commons Annotations ReflectionManager to use.- 指定者:
getReflectionManager在接口中BootstrapContext- 返回:
- The Hibernate Commons Annotations ReflectionManager to use.
-
getJandexView
public org.jboss.jandex.IndexView getJandexView()
从接口复制的说明:BootstrapContextAccess to the Jandex index passed by call toMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any. Note that Jandex is currently not used. See https://github.com/hibernate/hibernate-orm/wiki/Roadmap7.0- 指定者:
getJandexView在接口中BootstrapContext- 返回:
- The Jandex index
-
getSqlFunctions
public Map<String,SQLFunction> getSqlFunctions()
从接口复制的说明:BootstrapContextAccess to any SQL functions explicitly registered with the MetadataBuilder. This does not include Dialect defined functions, etc. Should never returnnull- 指定者:
getSqlFunctions在接口中BootstrapContext- 返回:
- The SQLFunctions registered through MetadataBuilder
-
getAuxiliaryDatabaseObjectList
public Collection<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
从接口复制的说明:BootstrapContextAccess to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder. This does not include AuxiliaryDatabaseObject defined in mappings. Should never returnnull- 指定者:
getAuxiliaryDatabaseObjectList在接口中BootstrapContext- 返回:
- The AuxiliaryDatabaseObject registered through MetadataBuilder
-
getAttributeConverters
public Collection<AttributeConverterInfo> getAttributeConverters()
从接口复制的说明:BootstrapContextAccess to collected AttributeConverter definitions. Should never returnnull- 指定者:
getAttributeConverters在接口中BootstrapContext- 返回:
- The AttributeConverterInfo registered through MetadataBuilder
-
getCacheRegionDefinitions
public Collection<CacheRegionDefinition> getCacheRegionDefinitions()
从接口复制的说明:BootstrapContextAccess to all explicit cache region mappings. Should never returnnull- 指定者:
getCacheRegionDefinitions在接口中BootstrapContext- 返回:
- Explicit cache region mappings
-
release
public void release()
从接口复制的说明:BootstrapContextReleases the "bootstrap only" resources held by this BootstrapContext. Only one call to this method is supported, after we have completed the process of building the (non-inflight) Metadata impl. We may want to delay this until we get into SF building. Not sure yet.- 指定者:
release在接口中BootstrapContext
-
addAttributeConverterInfo
public void addAttributeConverterInfo(AttributeConverterInfo info)
-
addSqlFunction
public void addSqlFunction(String functionName, SQLFunction function)
-
addAuxiliaryDatabaseObject
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
-
addCacheRegionDefinition
public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
-
-