public class BootstrapContextImpl extends Object implements BootstrapContext
| Modifier and Type | Field and Description |
|---|---|
static BootstrapContextImpl |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ArchiveDescriptorFactory |
getArchiveDescriptorFactory()
Access to the ArchiveDescriptorFactory to be used for scanning
|
Collection<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.
|
ClassLoaderAccess |
getClassLoaderAccess() |
org.hibernate.boot.internal.ClassmateContext |
getClassmateContext()
Access to the shared Classmate objects used throughout Hibernate's
bootstrap process.
|
org.jboss.jandex.IndexView |
getJandexView()
Access to the Jandex index passed by call to
MetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any. |
MutableJpaCompliance |
getJpaCompliance() |
ClassLoader |
getJpaTempClassLoader()
Access the temporary ClassLoader passed to us as defined by
PersistenceUnitInfo.getNewTempClassLoader(), if any. |
MetadataBuildingOptions |
getMetadataBuildingOptions() |
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
Retrieve the Hibernate Commons Annotations ReflectionManager to use.
|
ScanEnvironment |
getScanEnvironment()
Access to the environment for scanning.
|
Object |
getScanner()
Access to the Scanner to be used for scanning.
|
ScanOptions |
getScanOptions()
Access to the options to be used for scanning
|
StandardServiceRegistry |
getServiceRegistry() |
Map<String,SQLFunction> |
getSqlFunctions()
Access to any SQL functions explicitly registered with the MetadataBuilder.
|
TypeConfiguration |
getTypeConfiguration() |
boolean |
isJpaBootstrap() |
void |
markAsJpaBootstrap()
Indicates that bootstrap was initiated from JPA bootstrapping.
|
void |
release()
Releases the "bootstrap only" resources held by this BootstrapContext.
|
public static final BootstrapContextImpl INSTANCE
public StandardServiceRegistry getServiceRegistry()
getServiceRegistry in interface BootstrapContextpublic MutableJpaCompliance getJpaCompliance()
getJpaCompliance in interface BootstrapContextpublic TypeConfiguration getTypeConfiguration()
getTypeConfiguration in interface BootstrapContextpublic MetadataBuildingOptions getMetadataBuildingOptions()
getMetadataBuildingOptions in interface BootstrapContextpublic boolean isJpaBootstrap()
isJpaBootstrap in interface BootstrapContextpublic void markAsJpaBootstrap()
BootstrapContextfalse is
the assumed value. We only need to call this to mark that as true.markAsJpaBootstrap in interface BootstrapContextpublic ClassLoader getJpaTempClassLoader()
BootstrapContextPersistenceUnitInfo.getNewTempClassLoader(), if any.getJpaTempClassLoader in interface BootstrapContextpublic ClassLoaderAccess getClassLoaderAccess()
getClassLoaderAccess in interface BootstrapContextpublic org.hibernate.boot.internal.ClassmateContext getClassmateContext()
BootstrapContextgetClassmateContext in interface BootstrapContextpublic ArchiveDescriptorFactory getArchiveDescriptorFactory()
BootstrapContextgetArchiveDescriptorFactory in interface BootstrapContextpublic ScanOptions getScanOptions()
BootstrapContextgetScanOptions in interface BootstrapContextpublic ScanEnvironment getScanEnvironment()
BootstrapContextScanEnvironmentgetScanEnvironment in interface BootstrapContextpublic Object getScanner()
BootstrapContextgetScanner in interface BootstrapContextpublic org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
BootstrapContextgetReflectionManager in interface BootstrapContextpublic org.jboss.jandex.IndexView getJandexView()
BootstrapContextMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.
Note that Jandex is currently not used. See https://github.com/hibernate/hibernate-orm/wiki/Roadmap7.0getJandexView in interface BootstrapContextpublic Map<String,SQLFunction> getSqlFunctions()
BootstrapContextnullgetSqlFunctions in interface BootstrapContextpublic Collection<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
BootstrapContextnullgetAuxiliaryDatabaseObjectList in interface BootstrapContextpublic Collection<AttributeConverterInfo> getAttributeConverters()
BootstrapContextnullgetAttributeConverters in interface BootstrapContextpublic Collection<CacheRegionDefinition> getCacheRegionDefinitions()
BootstrapContextnullgetCacheRegionDefinitions in interface BootstrapContextpublic void release()
BootstrapContextrelease in interface BootstrapContextCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.