public class BootstrapContextImpl extends Object implements BootstrapContext
Constructor and Description |
---|
BootstrapContextImpl(StandardServiceRegistry serviceRegistry,
MetadataBuildingOptions metadataBuildingOptions) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeConverterInfo(AttributeConverterInfo info) |
void |
addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject) |
void |
addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition) |
void |
addSqlFunction(String functionName,
SQLFunction function) |
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() |
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() |
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 BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)
public StandardServiceRegistry getServiceRegistry()
getServiceRegistry
in interface BootstrapContext
public MutableJpaCompliance getJpaCompliance()
getJpaCompliance
in interface BootstrapContext
public TypeConfiguration getTypeConfiguration()
getTypeConfiguration
in interface BootstrapContext
public MetadataBuildingOptions getMetadataBuildingOptions()
getMetadataBuildingOptions
in interface BootstrapContext
public boolean isJpaBootstrap()
isJpaBootstrap
in interface BootstrapContext
public void markAsJpaBootstrap()
BootstrapContext
false
is
the assumed value. We only need to call this to mark that as true.markAsJpaBootstrap
in interface BootstrapContext
public ClassLoader getJpaTempClassLoader()
BootstrapContext
PersistenceUnitInfo.getNewTempClassLoader()
, if any.getJpaTempClassLoader
in interface BootstrapContext
public ClassLoaderAccess getClassLoaderAccess()
getClassLoaderAccess
in interface BootstrapContext
public ClassmateContext getClassmateContext()
BootstrapContext
getClassmateContext
in interface BootstrapContext
public ArchiveDescriptorFactory getArchiveDescriptorFactory()
BootstrapContext
getArchiveDescriptorFactory
in interface BootstrapContext
public ScanOptions getScanOptions()
BootstrapContext
getScanOptions
in interface BootstrapContext
public ScanEnvironment getScanEnvironment()
BootstrapContext
ScanEnvironment
getScanEnvironment
in interface BootstrapContext
public Object getScanner()
BootstrapContext
getScanner
in interface BootstrapContext
public ReflectionManager getReflectionManager()
BootstrapContext
getReflectionManager
in interface BootstrapContext
public org.jboss.jandex.IndexView getJandexView()
BootstrapContext
MetadataBuilder.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 BootstrapContext
public Map<String,SQLFunction> getSqlFunctions()
BootstrapContext
null
getSqlFunctions
in interface BootstrapContext
public Collection<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
BootstrapContext
null
getAuxiliaryDatabaseObjectList
in interface BootstrapContext
public Collection<AttributeConverterInfo> getAttributeConverters()
BootstrapContext
null
getAttributeConverters
in interface BootstrapContext
public Collection<CacheRegionDefinition> getCacheRegionDefinitions()
BootstrapContext
null
getCacheRegionDefinitions
in interface BootstrapContext
public void release()
BootstrapContext
release
in interface BootstrapContext
public void addAttributeConverterInfo(AttributeConverterInfo info)
public void addSqlFunction(String functionName, SQLFunction function)
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
Copyright © 2021 JBoss by Red Hat. All rights reserved.