Package org.hibernate.testing.boot
Class BootstrapContextImpl
java.lang.Object
org.hibernate.testing.boot.BootstrapContextImpl
- All Implemented Interfaces:
BootstrapContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Access to theArchiveDescriptorFactory
used for scanning.Access to collectedAttributeConverter
definitions.Access to anyAuxiliaryDatabaseObject
s explicitly registered with theMetadataBuilder
.Access to all explicit cache region mappings.Access to class loading capabilities.Access to the sharedClassmateContext
object used throughout the bootstrap process.TheBeanInstanceProducer
to use when creating custom type references.TheSqmFunctionRegistry
belonging to thisBootstrapContext
.Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(Object)
, if any.In-flight form ofJpaCompliance
Access the temporaryClassLoader
passed to us, as defined byPersistenceUnitInfo.getNewTempClassLoader()
, if any.Options specific to building the boot metamodelAccess to the environment for scanning.Access to theScanner
to 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
.TheTypeConfiguration
belonging to thisBootstrapContext
.boolean
Whether the bootstrap was initiated from JPA bootstrapping.void
Indicates that bootstrap was initiated from JPA bootstrapping.void
registerAdHocBasicType
(BasicType<?> basicType) To support Envers.void
release()
Releases the "bootstrap only" resources held by thisBootstrapContext
.<T> BasicType<T>
To support Envers.
-
Constructor Details
-
BootstrapContextImpl
public BootstrapContextImpl()
-
-
Method Details
-
getServiceRegistry
Description copied from interface:BootstrapContext
The service registry available to bootstrapping- Specified by:
getServiceRegistry
in interfaceBootstrapContext
-
getJpaCompliance
Description copied from interface:BootstrapContext
In-flight form ofJpaCompliance
- Specified by:
getJpaCompliance
in interfaceBootstrapContext
-
getTypeConfiguration
Description copied from interface:BootstrapContext
TheTypeConfiguration
belonging to thisBootstrapContext
.- Specified by:
getTypeConfiguration
in interfaceBootstrapContext
- See Also:
-
getFunctionRegistry
Description copied from interface:BootstrapContext
TheSqmFunctionRegistry
belonging to thisBootstrapContext
.- Specified by:
getFunctionRegistry
in interfaceBootstrapContext
- See Also:
-
getCustomTypeProducer
Description copied from interface:BootstrapContext
TheBeanInstanceProducer
to use when creating custom type references.- Specified by:
getCustomTypeProducer
in interfaceBootstrapContext
-
getMetadataBuildingOptions
Description copied from interface:BootstrapContext
Options specific to building the boot metamodel- Specified by:
getMetadataBuildingOptions
in interfaceBootstrapContext
-
isJpaBootstrap
public boolean isJpaBootstrap()Description copied from interface:BootstrapContext
Whether the bootstrap was initiated from JPA bootstrapping.- Specified by:
isJpaBootstrap
in interfaceBootstrapContext
- See Also:
-
markAsJpaBootstrap
public void markAsJpaBootstrap()Description copied from interface:BootstrapContext
Indicates that bootstrap was initiated from JPA bootstrapping.- Specified by:
markAsJpaBootstrap
in interfaceBootstrapContext
-
getJpaTempClassLoader
Description copied from interface:BootstrapContext
Access the temporaryClassLoader
passed to us, as defined byPersistenceUnitInfo.getNewTempClassLoader()
, if any.- Specified by:
getJpaTempClassLoader
in interfaceBootstrapContext
- Returns:
- The temporary
ClassLoader
-
getClassLoaderAccess
Description copied from interface:BootstrapContext
Access to class loading capabilities.- Specified by:
getClassLoaderAccess
in interfaceBootstrapContext
-
getClassmateContext
Description copied from interface:BootstrapContext
Access to the sharedClassmateContext
object used throughout the bootstrap process.- Specified by:
getClassmateContext
in interfaceBootstrapContext
-
getArchiveDescriptorFactory
Description copied from interface:BootstrapContext
Access to theArchiveDescriptorFactory
used for scanning.- Specified by:
getArchiveDescriptorFactory
in interfaceBootstrapContext
- Returns:
- The
ArchiveDescriptorFactory
-
getScanOptions
Description copied from interface:BootstrapContext
Access to the options to be used for scanning.- Specified by:
getScanOptions
in interfaceBootstrapContext
- Returns:
- The scan options
-
getScanEnvironment
Description copied from interface:BootstrapContext
Access to the environment for scanning.- Specified by:
getScanEnvironment
in interfaceBootstrapContext
- Returns:
- The scan environment
-
getScanner
Description copied from interface:BootstrapContext
Access to theScanner
to be used for scanning.Can be:
- An instance of
Scanner
, - a
Class
reference to theScanner
implementor, or - a string naming the
Scanner
implementor.
- Specified by:
getScanner
in interfaceBootstrapContext
- Returns:
- The scanner
- An instance of
-
getJandexView
Description copied from interface:BootstrapContext
Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(Object)
, if any.- Specified by:
getJandexView
in interfaceBootstrapContext
- Returns:
- The Jandex index
-
getSqlFunctions
Description copied from interface:BootstrapContext
Access to any SQL functions explicitly registered with theMetadataBuilder
. This does not includeDialect
-registered functions.Should never return
null
.- Specified by:
getSqlFunctions
in interfaceBootstrapContext
- Returns:
- The
SqmFunctionDescriptor
s registered viaMetadataBuilder
-
getAuxiliaryDatabaseObjectList
Description copied from interface:BootstrapContext
Access to anyAuxiliaryDatabaseObject
s explicitly registered with theMetadataBuilder
. This does not includeAuxiliaryDatabaseObject
s defined in mappings.Should never return
null
.- Specified by:
getAuxiliaryDatabaseObjectList
in interfaceBootstrapContext
- Returns:
- The
AuxiliaryDatabaseObject
s registered viaMetadataBuilder
-
getAttributeConverters
Description copied from interface:BootstrapContext
Access to collectedAttributeConverter
definitions.Should never return
null
.- Specified by:
getAttributeConverters
in interfaceBootstrapContext
- Returns:
- The
ConverterDescriptor
s registered viaMetadataBuilder
-
getCacheRegionDefinitions
Description copied from interface:BootstrapContext
Access to all explicit cache region mappings.Should never return
null
.- Specified by:
getCacheRegionDefinitions
in interfaceBootstrapContext
- Returns:
- Explicit cache region mappings
-
getRepresentationStrategySelector
- Specified by:
getRepresentationStrategySelector
in interfaceBootstrapContext
- See Also:
-
registerAdHocBasicType
Description copied from interface:BootstrapContext
To support Envers.- Specified by:
registerAdHocBasicType
in interfaceBootstrapContext
-
resolveAdHocBasicType
Description copied from interface:BootstrapContext
To support Envers.- Specified by:
resolveAdHocBasicType
in interfaceBootstrapContext
-
release
public void release()Description copied from interface:BootstrapContext
Releases the "bootstrap only" resources held by thisBootstrapContext
.- Specified by:
release
in interfaceBootstrapContext
-
close
public void close()
-