Package org.hibernate.boot.internal
Class BootstrapContextImpl
java.lang.Object
org.hibernate.boot.internal.BootstrapContextImpl
- All Implemented Interfaces:
BootstrapContext
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeConverterDescriptor(ConverterDescriptor<?, ?> descriptor) voidaddAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject) voidaddCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition) voidaddSqlFunction(String functionName, SqmFunctionDescriptor function) static org.hibernate.models.spi.ModelsContextcreateModelBuildingContext(ClassLoaderService classLoaderService, ConfigurationService configService) Access to theArchiveDescriptorFactoryused for scanning.Access to collectedAttributeConverterdefinitions.Access to anyAuxiliaryDatabaseObjects explicitly registered with theMetadataBuilder.Access to all explicit cache region mappings.Access to class loading capabilities.Access to theClassLoaderService.Access to the sharedClassmateContextobject used throughout the bootstrap process.Access to theConfigurationService.TheBeanInstanceProducerto use when creating custom type references.TheSqmFunctionRegistrybelonging to thisBootstrapContext.Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(Object), if any.In-flight form ofJpaComplianceAccess the temporaryClassLoaderpassed to us, as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.Access to theManagedBeanRegistry.Options specific to building the boot metamodelorg.hibernate.models.spi.ModelsContextAccess to thehibernate-modelsModelsContextAccess to the environment for scanning.Access to theScannerto be used for scanning.Access to the options to be used for scanning.The service registry available to bootstrappingAccess to any SQL functions explicitly registered with theMetadataBuilder.TheTypeConfigurationbelonging to thisBootstrapContext.booleanWhether the bootstrap was initiated from JPA bootstrapping.voidIndicates that bootstrap was initiated from JPA bootstrapping.voidregisterAdHocBasicType(BasicType<?> basicType) To support Envers.voidrelease()Releases the "bootstrap only" resources held by thisBootstrapContext.<T> BasicType<T> To support Envers.
-
Constructor Details
-
BootstrapContextImpl
public BootstrapContextImpl(StandardServiceRegistry serviceRegistry, MetadataBuildingOptions metadataBuildingOptions)
-
-
Method Details
-
getServiceRegistry
Description copied from interface:BootstrapContextThe service registry available to bootstrapping- Specified by:
getServiceRegistryin interfaceBootstrapContext
-
getJpaCompliance
Description copied from interface:BootstrapContextIn-flight form ofJpaCompliance- Specified by:
getJpaCompliancein interfaceBootstrapContext
-
getTypeConfiguration
Description copied from interface:BootstrapContextTheTypeConfigurationbelonging to thisBootstrapContext.- Specified by:
getTypeConfigurationin interfaceBootstrapContext- See Also:
-
getModelsContext
public org.hibernate.models.spi.ModelsContext getModelsContext()Description copied from interface:BootstrapContextAccess to thehibernate-modelsModelsContext- Specified by:
getModelsContextin interfaceBootstrapContext
-
getFunctionRegistry
Description copied from interface:BootstrapContextTheSqmFunctionRegistrybelonging to thisBootstrapContext.- Specified by:
getFunctionRegistryin interfaceBootstrapContext- See Also:
-
getCustomTypeProducer
Description copied from interface:BootstrapContextTheBeanInstanceProducerto use when creating custom type references.- Specified by:
getCustomTypeProducerin interfaceBootstrapContext
-
getMetadataBuildingOptions
Description copied from interface:BootstrapContextOptions specific to building the boot metamodel- Specified by:
getMetadataBuildingOptionsin interfaceBootstrapContext
-
getClassLoaderService
Description copied from interface:BootstrapContextAccess to theClassLoaderService.- Specified by:
getClassLoaderServicein interfaceBootstrapContext
-
getManagedBeanRegistry
Description copied from interface:BootstrapContextAccess to theManagedBeanRegistry.- Specified by:
getManagedBeanRegistryin interfaceBootstrapContext
-
getConfigurationService
Description copied from interface:BootstrapContextAccess to theConfigurationService.- Specified by:
getConfigurationServicein interfaceBootstrapContext
-
isJpaBootstrap
public boolean isJpaBootstrap()Description copied from interface:BootstrapContextWhether the bootstrap was initiated from JPA bootstrapping.- Specified by:
isJpaBootstrapin interfaceBootstrapContext- See Also:
-
markAsJpaBootstrap
public void markAsJpaBootstrap()Description copied from interface:BootstrapContextIndicates that bootstrap was initiated from JPA bootstrapping.- Specified by:
markAsJpaBootstrapin interfaceBootstrapContext
-
getJpaTempClassLoader
Description copied from interface:BootstrapContextAccess the temporaryClassLoaderpassed to us, as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.- Specified by:
getJpaTempClassLoaderin interfaceBootstrapContext- Returns:
- The temporary
ClassLoader
-
getClassLoaderAccess
Description copied from interface:BootstrapContextAccess to class loading capabilities.- Specified by:
getClassLoaderAccessin interfaceBootstrapContext
-
getClassmateContext
Description copied from interface:BootstrapContextAccess to the sharedClassmateContextobject used throughout the bootstrap process.- Specified by:
getClassmateContextin interfaceBootstrapContext
-
getArchiveDescriptorFactory
Description copied from interface:BootstrapContextAccess to theArchiveDescriptorFactoryused for scanning.- Specified by:
getArchiveDescriptorFactoryin interfaceBootstrapContext- Returns:
- The
ArchiveDescriptorFactory
-
getScanOptions
Description copied from interface:BootstrapContextAccess to the options to be used for scanning.- Specified by:
getScanOptionsin interfaceBootstrapContext- Returns:
- The scan options
-
getScanEnvironment
Description copied from interface:BootstrapContextAccess to the environment for scanning.- Specified by:
getScanEnvironmentin interfaceBootstrapContext- Returns:
- The scan environment
-
getScanner
Description copied from interface:BootstrapContextAccess to theScannerto be used for scanning.Can be:
- An instance of
Scanner, - a
Classreference to theScannerimplementor, or - a string naming the
Scannerimplementor.
- Specified by:
getScannerin interfaceBootstrapContext- Returns:
- The scanner
- An instance of
-
getJandexView
Description copied from interface:BootstrapContextAccess to the Jandex index passed by call toMetadataBuilder.applyIndexView(Object), if any.- Specified by:
getJandexViewin interfaceBootstrapContext- Returns:
- The Jandex index
-
getSqlFunctions
Description copied from interface:BootstrapContextAccess to any SQL functions explicitly registered with theMetadataBuilder. This does not includeDialect-registered functions.Should never return
null.- Specified by:
getSqlFunctionsin interfaceBootstrapContext- Returns:
- The
SqmFunctionDescriptors registered viaMetadataBuilder
-
getAuxiliaryDatabaseObjectList
Description copied from interface:BootstrapContextAccess to anyAuxiliaryDatabaseObjects explicitly registered with theMetadataBuilder. This does not includeAuxiliaryDatabaseObjects defined in mappings.Should never return
null.- Specified by:
getAuxiliaryDatabaseObjectListin interfaceBootstrapContext- Returns:
- The
AuxiliaryDatabaseObjects registered viaMetadataBuilder
-
getAttributeConverters
Description copied from interface:BootstrapContextAccess to collectedAttributeConverterdefinitions.Should never return
null.- Specified by:
getAttributeConvertersin interfaceBootstrapContext- Returns:
- The
ConverterDescriptors registered viaMetadataBuilder
-
getCacheRegionDefinitions
Description copied from interface:BootstrapContextAccess to all explicit cache region mappings.Should never return
null.- Specified by:
getCacheRegionDefinitionsin interfaceBootstrapContext- Returns:
- Explicit cache region mappings
-
registerAdHocBasicType
Description copied from interface:BootstrapContextTo support Envers.- Specified by:
registerAdHocBasicTypein interfaceBootstrapContext
-
resolveAdHocBasicType
Description copied from interface:BootstrapContextTo support Envers.- Specified by:
resolveAdHocBasicTypein interfaceBootstrapContext
-
release
public void release()Description copied from interface:BootstrapContextReleases the "bootstrap only" resources held by thisBootstrapContext.- Specified by:
releasein interfaceBootstrapContext
-
getRepresentationStrategySelector
- Specified by:
getRepresentationStrategySelectorin interfaceBootstrapContext- See Also:
-
addAttributeConverterDescriptor
-
addSqlFunction
-
addAuxiliaryDatabaseObject
-
addCacheRegionDefinition
-
createModelBuildingContext
public static org.hibernate.models.spi.ModelsContext createModelBuildingContext(ClassLoaderService classLoaderService, ConfigurationService configService)
-