Top Fields Constructors Methods
org.hibernate.boot.internal

public Class BootstrapContextImpl

extends Object
implements BootstrapContext
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.spi.BootstrapContext
Imports
java.util.ArrayList, .Collection, .Collections, .HashMap, .Map, org.hibernate.AssertionFailure, org.hibernate.annotations.common.reflection.ReflectionManager, org.hibernate.annotations.common.reflection.java.JavaReflectionManager, org.hibernate.boot.CacheRegionDefinition, org.hibernate.boot.archive.scan.internal.StandardScanOptions, org.hibernate.boot.archive.scan.spi.ScanEnvironment, .ScanOptions, .Scanner, org.hibernate.boot.archive.spi.ArchiveDescriptorFactory, org.hibernate.boot.model.TypeBeanInstanceProducer, org.hibernate.boot.model.convert.spi.ConverterDescriptor, org.hibernate.boot.model.internal.JPAXMLOverriddenMetadataProvider, org.hibernate.boot.model.relational.AuxiliaryDatabaseObject, org.hibernate.boot.registry.StandardServiceRegistry, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.boot.registry.selector.spi.StrategySelector, org.hibernate.boot.spi.BootstrapContext, .ClassLoaderAccess, .MetadataBuildingOptions, org.hibernate.cfg.AvailableSettings, org.hibernate.engine.config.spi.ConfigurationService, org.hibernate.jpa.internal.MutableJpaComplianceImpl, org.hibernate.jpa.spi.MutableJpaCompliance, org.hibernate.metamodel.internal.ManagedTypeRepresentationResolverStandard, org.hibernate.metamodel.spi.ManagedTypeRepresentationResolver, org.hibernate.query.sqm.function.SqmFunctionDescriptor, .SqmFunctionRegistry, org.hibernate.resource.beans.spi.BeanInstanceProducer, org.hibernate.type.BasicType, org.hibernate.type.spi.TypeConfiguration, org.jboss.jandex.IndexView, org.jboss.logging.Logger

Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
private final Map<String, BasicType<?>>
private ArchiveDescriptorFactory
private HashMap<Class<?>, ConverterDescriptor>
private ArrayList<AuxiliaryDatabaseObject>
private final BeanInstanceProducer
private ArrayList<CacheRegionDefinition>
private final ClassLoaderAccessImpl
private final ClassmateContext
private final JavaReflectionManager
private boolean
private IndexView
private final MutableJpaCompliance
private static final Logger
private final MetadataBuildingOptions
private final ManagedTypeRepresentationResolver
private ScanEnvironment
private Object
private ScanOptions
private final StandardServiceRegistry
private HashMap<String, SqmFunctionDescriptor>
private final SqmFunctionRegistry
private final TypeConfiguration

Constructor Summary

AccessConstructor and Description
public
BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
private JavaReflectionManager
public ArchiveDescriptorFactory
public Collection<ConverterDescriptor>
public Collection<AuxiliaryDatabaseObject>
public Collection<CacheRegionDefinition>
getCacheRegionDefinitions()

Implements org.hibernate.boot.spi.BootstrapContext.getCacheRegionDefinitions.

Access to all explicit cache region mappings.
public ClassLoaderAccess
public ClassmateContext
getClassmateContext()

Implements org.hibernate.boot.spi.BootstrapContext.getClassmateContext.

Access to the shared ClassmateContext object used throughout the bootstrap process.
public BeanInstanceProducer
public SqmFunctionRegistry
public IndexView
public MutableJpaCompliance
public ClassLoader
public MetadataBuildingOptions
public ReflectionManager
public ManagedTypeRepresentationResolver
public ScanEnvironment
getScanEnvironment()

Implements org.hibernate.boot.spi.BootstrapContext.getScanEnvironment.

Access to the environment for scanning.
public Object
public ScanOptions
getScanOptions()

Implements org.hibernate.boot.spi.BootstrapContext.getScanOptions.

Access to the options to be used for scanning.
public StandardServiceRegistry
getServiceRegistry()

Implements org.hibernate.boot.spi.BootstrapContext.getServiceRegistry.

The service registry available to bootstrapping
public Map<String, SqmFunctionDescriptor>
getSqlFunctions()

Implements org.hibernate.boot.spi.BootstrapContext.getSqlFunctions.

Access to any SQL functions explicitly registered with the org.hibernate.boot.MetadataBuilder.
public TypeConfiguration
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
public boolean
isJpaBootstrap()

Implements org.hibernate.boot.spi.BootstrapContext.isJpaBootstrap.

Whether the bootstrap was initiated from JPA bootstrapping.
public void
markAsJpaBootstrap()

Implements org.hibernate.boot.spi.BootstrapContext.markAsJpaBootstrap.

Indicates that bootstrap was initiated from JPA bootstrapping.
public void
public void
release()

Implements org.hibernate.boot.spi.BootstrapContext.release.

Releases the "bootstrap only" resources held by this BootstrapContext.
public <T> BasicType<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

adHocBasicTypeRegistrationsback to summary
private final Map<String, BasicType<?>> adHocBasicTypeRegistrations
archiveDescriptorFactoryback to summary
private ArchiveDescriptorFactory archiveDescriptorFactory
attributeConverterDescriptorMapback to summary
private HashMap<Class<?>, ConverterDescriptor> attributeConverterDescriptorMap
auxiliaryDatabaseObjectListback to summary
private ArrayList<AuxiliaryDatabaseObject> auxiliaryDatabaseObjectList
beanInstanceProducerback to summary
private final BeanInstanceProducer beanInstanceProducer
cacheRegionDefinitionsback to summary
private ArrayList<CacheRegionDefinition> cacheRegionDefinitions
classLoaderAccessback to summary
private final ClassLoaderAccessImpl classLoaderAccess
classmateContextback to summary
private final ClassmateContext classmateContext
hcannReflectionManagerback to summary
private final JavaReflectionManager hcannReflectionManager
isJpaBootstrapback to summary
private boolean isJpaBootstrap
jandexViewback to summary
private IndexView jandexView
jpaComplianceback to summary
private final MutableJpaCompliance jpaCompliance
logback to summary
private static final Logger log
metadataBuildingOptionsback to summary
private final MetadataBuildingOptions metadataBuildingOptions
representationStrategySelectorback to summary
private final ManagedTypeRepresentationResolver representationStrategySelector
scanEnvironmentback to summary
private ScanEnvironment scanEnvironment
scannerSettingback to summary
private Object scannerSetting
scanOptionsback to summary
private ScanOptions scanOptions
serviceRegistryback to summary
private final StandardServiceRegistry serviceRegistry
sqlFunctionMapback to summary
private HashMap<String, SqmFunctionDescriptor> sqlFunctionMap
sqmFunctionRegistryback to summary
private final SqmFunctionRegistry sqmFunctionRegistry
typeConfigurationback to summary
private final TypeConfiguration typeConfiguration

Constructor Detail

BootstrapContextImplback to summary
public BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)

Method Detail

addAttributeConverterDescriptorback to summary
public void addAttributeConverterDescriptor(ConverterDescriptor descriptor)
addAuxiliaryDatabaseObjectback to summary
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
addCacheRegionDefinitionback to summary
public void addCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)
addSqlFunctionback to summary
public void addSqlFunction(String functionName, SqmFunctionDescriptor function)
generateHcannReflectionManagerback to summary
private JavaReflectionManager generateHcannReflectionManager()
getArchiveDescriptorFactoryback to summary
public ArchiveDescriptorFactory getArchiveDescriptorFactory()

Implements org.hibernate.boot.spi.BootstrapContext.getArchiveDescriptorFactory.

Doc from org.hibernate.boot.spi.BootstrapContext.getArchiveDescriptorFactory.

Access to the ArchiveDescriptorFactory used for scanning.

Returns:ArchiveDescriptorFactory

The ArchiveDescriptorFactory

Annotations
@Override
getAttributeConvertersback to summary
public Collection<ConverterDescriptor> getAttributeConverters()

Implements org.hibernate.boot.spi.BootstrapContext.getAttributeConverters.

Doc from org.hibernate.boot.spi.BootstrapContext.getAttributeConverters.

Access to collected jakarta.persistence.AttributeConverter definitions.

Should never return null.

Returns:Collection<ConverterDescriptor>

The ConverterDescriptors registered via MetadataBuilder

Annotations
@Override
getAuxiliaryDatabaseObjectListback to summary
public Collection<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()

Implements org.hibernate.boot.spi.BootstrapContext.getAuxiliaryDatabaseObjectList.

Doc from org.hibernate.boot.spi.BootstrapContext.getAuxiliaryDatabaseObjectList.

Access to any AuxiliaryDatabaseObjects explicitly registered with the org.hibernate.boot.MetadataBuilder. This does not include AuxiliaryDatabaseObjects defined in mappings.

Should never return null.

Returns:Collection<AuxiliaryDatabaseObject>

The AuxiliaryDatabaseObjects registered via MetadataBuilder

Annotations
@Override
getCacheRegionDefinitionsback to summary
public Collection<CacheRegionDefinition> getCacheRegionDefinitions()

Implements org.hibernate.boot.spi.BootstrapContext.getCacheRegionDefinitions.

Doc from org.hibernate.boot.spi.BootstrapContext.getCacheRegionDefinitions.

Access to all explicit cache region mappings.

Should never return null.

Returns:Collection<CacheRegionDefinition>

Explicit cache region mappings

Annotations
@Override
getClassLoaderAccessback to summary
public ClassLoaderAccess getClassLoaderAccess()

Implements org.hibernate.boot.spi.BootstrapContext.getClassLoaderAccess.

Doc from org.hibernate.boot.spi.BootstrapContext.getClassLoaderAccess.

Access to class loading capabilities.

Annotations
@Override
getClassmateContextback to summary
public ClassmateContext getClassmateContext()

Implements org.hibernate.boot.spi.BootstrapContext.getClassmateContext.

Doc from org.hibernate.boot.spi.BootstrapContext.getClassmateContext.

Access to the shared ClassmateContext object used throughout the bootstrap process.

Returns:ClassmateContext

Access to the shared ClassmateContext delegates.

Annotations
@Override
getCustomTypeProducerback to summary
public BeanInstanceProducer getCustomTypeProducer()

Implements org.hibernate.boot.spi.BootstrapContext.getCustomTypeProducer.

Doc from org.hibernate.boot.spi.BootstrapContext.getCustomTypeProducer.

The BeanInstanceProducer to use when creating custom type references.

Annotations
@Override
getFunctionRegistryback to summary
public SqmFunctionRegistry getFunctionRegistry()

Implements org.hibernate.boot.spi.BootstrapContext.getFunctionRegistry.

Doc from org.hibernate.boot.spi.BootstrapContext.getFunctionRegistry.

The SqmFunctionRegistry belonging to this BootstrapContext.

Annotations
@Override
getJandexViewback to summary
public IndexView getJandexView()

Implements org.hibernate.boot.spi.BootstrapContext.getJandexView.

Doc from org.hibernate.boot.spi.BootstrapContext.getJandexView.

Access to the Jandex index passed by call to org.hibernate.boot.MetadataBuilder#applyIndexView(IndexView), if any.

Returns:IndexView

The Jandex index

Annotations
@Override
getJpaComplianceback to summary
public MutableJpaCompliance getJpaCompliance()

Implements org.hibernate.boot.spi.BootstrapContext.getJpaCompliance.

Doc from org.hibernate.boot.spi.BootstrapContext.getJpaCompliance.

In-flight form of org.hibernate.jpa.spi.JpaCompliance

Annotations
@Override
getJpaTempClassLoaderback to summary
public ClassLoader getJpaTempClassLoader()

Implements org.hibernate.boot.spi.BootstrapContext.getJpaTempClassLoader.

Doc from org.hibernate.boot.spi.BootstrapContext.getJpaTempClassLoader.

Access the temporary ClassLoader passed to us, as defined by jakarta.persistence.spi.PersistenceUnitInfo#getNewTempClassLoader(), if any.

Returns:ClassLoader

The temporary ClassLoader

Annotations
@Override
getMetadataBuildingOptionsback to summary
public MetadataBuildingOptions getMetadataBuildingOptions()

Implements org.hibernate.boot.spi.BootstrapContext.getMetadataBuildingOptions.

Doc from org.hibernate.boot.spi.BootstrapContext.getMetadataBuildingOptions.

Options specific to building the boot metamodel

Annotations
@Override
getReflectionManagerback to summary
public ReflectionManager getReflectionManager()

Implements org.hibernate.boot.spi.BootstrapContext.getReflectionManager.

Doc from org.hibernate.boot.spi.BootstrapContext.getReflectionManager.

Retrieve the Hibernate Commons Annotations ReflectionManager.

Annotations
@Override
getRepresentationStrategySelectorback to summary
public ManagedTypeRepresentationResolver getRepresentationStrategySelector()

Implements org.hibernate.boot.spi.BootstrapContext.getRepresentationStrategySelector.

Annotations
@Override
getScanEnvironmentback to summary
public ScanEnvironment getScanEnvironment()

Implements org.hibernate.boot.spi.BootstrapContext.getScanEnvironment.

Doc from org.hibernate.boot.spi.BootstrapContext.getScanEnvironment.

Access to the environment for scanning.

Returns:ScanEnvironment

The scan environment

Annotations
@Override
getScannerback to summary
public Object getScanner()

Implements org.hibernate.boot.spi.BootstrapContext.getScanner.

Doc from org.hibernate.boot.spi.BootstrapContext.getScanner.

Access to the org.hibernate.boot.archive.scan.spi.Scanner to be used for scanning.

Can be:

Returns:Object

The scanner

Annotations
@Override
getScanOptionsback to summary
public ScanOptions getScanOptions()

Implements org.hibernate.boot.spi.BootstrapContext.getScanOptions.

Doc from org.hibernate.boot.spi.BootstrapContext.getScanOptions.

Access to the options to be used for scanning.

Returns:ScanOptions

The scan options

Annotations
@Override
getServiceRegistryback to summary
public StandardServiceRegistry getServiceRegistry()

Implements org.hibernate.boot.spi.BootstrapContext.getServiceRegistry.

Doc from org.hibernate.boot.spi.BootstrapContext.getServiceRegistry.

The service registry available to bootstrapping

Annotations
@Override
getSqlFunctionsback to summary
public Map<String, SqmFunctionDescriptor> getSqlFunctions()

Implements org.hibernate.boot.spi.BootstrapContext.getSqlFunctions.

Doc from org.hibernate.boot.spi.BootstrapContext.getSqlFunctions.

Access to any SQL functions explicitly registered with the org.hibernate.boot.MetadataBuilder. This does not include Dialect-registered functions.

Should never return null.

Returns:Map<String, SqmFunctionDescriptor>

The SqmFunctionDescriptors registered via MetadataBuilder

Annotations
@Override
getTypeConfigurationback to summary
public TypeConfiguration getTypeConfiguration()

Implements org.hibernate.boot.spi.BootstrapContext.getTypeConfiguration.

Doc from org.hibernate.boot.spi.BootstrapContext.getTypeConfiguration.

The TypeConfiguration belonging to this BootstrapContext.

Annotations
@Override
injectArchiveDescriptorFactoryback to summary
pack-priv void injectArchiveDescriptorFactory(ArchiveDescriptorFactory factory)
injectJandexViewback to summary
pack-priv void injectJandexView(IndexView jandexView)
injectJpaTempClassLoaderback to summary
pack-priv void injectJpaTempClassLoader(ClassLoader jpaTempClassLoader)
injectScanEnvironmentback to summary
pack-priv void injectScanEnvironment(ScanEnvironment scanEnvironment)
injectScannerback to summary
pack-priv void injectScanner(Scanner scanner)
injectScanOptionsback to summary
pack-priv void injectScanOptions(ScanOptions scanOptions)
isJpaBootstrapback to summary
public boolean isJpaBootstrap()

Implements org.hibernate.boot.spi.BootstrapContext.isJpaBootstrap.

Doc from org.hibernate.boot.spi.BootstrapContext.isJpaBootstrap.

Whether the bootstrap was initiated from JPA bootstrapping.

Annotations
@Override
markAsJpaBootstrapback to summary
public void markAsJpaBootstrap()

Implements org.hibernate.boot.spi.BootstrapContext.markAsJpaBootstrap.

Doc from org.hibernate.boot.spi.BootstrapContext.markAsJpaBootstrap.

Indicates that bootstrap was initiated from JPA bootstrapping.

Annotations
@Override
registerAdHocBasicTypeback to summary
public void registerAdHocBasicType(BasicType<?> basicType)

Implements org.hibernate.boot.spi.BootstrapContext.registerAdHocBasicType.

Doc from org.hibernate.boot.spi.BootstrapContext.registerAdHocBasicType.

To support Envers.

Annotations
@Override
releaseback to summary
public void release()

Implements org.hibernate.boot.spi.BootstrapContext.release.

Doc from org.hibernate.boot.spi.BootstrapContext.release.

Releases the "bootstrap only" resources held by this BootstrapContext.

Annotations
@Override
resolveAdHocBasicTypeback to summary
public <T> BasicType<T> resolveAdHocBasicType(String key)

Implements org.hibernate.boot.spi.BootstrapContext.resolveAdHocBasicType.

Doc from org.hibernate.boot.spi.BootstrapContext.resolveAdHocBasicType.

To support Envers.

Annotations
@Override