Package io.quarkus.jdbc.h2.deployment
Class H2JDBCReflections
java.lang.Object
io.quarkus.jdbc.h2.deployment.H2JDBCReflections
Registers the
org.h2.Driver so that it can be loaded
by reflection, as commonly expected.- Author:
- Sanne Grinovero <sanne@hibernate.org>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidbuild(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem> reflectiveClass) (package private) io.quarkus.deployment.builditem.NativeImageFeatureBuildItem(package private) io.quarkus.deployment.builditem.IndexDependencyBuildItemWe need to index the H2 database core jar so to include custom extension types it's loading via reflection.(package private) io.quarkus.deployment.builditem.GeneratedResourceBuildItemlistBasicDataTypes(io.quarkus.deployment.builditem.CombinedIndexBuildItem index) All implementors ofDataTypewhich have an INSTANCE field need this field to be accessible via reflection.(package private) io.quarkus.deployment.builditem.GeneratedResourceBuildItemlistStatefulDataTypeFactories(io.quarkus.deployment.builditem.CombinedIndexBuildItem index) All implementors ofStatefulDataType.Factorymight get loaded reflectively.
-
Constructor Details
-
H2JDBCReflections
public H2JDBCReflections()
-
-
Method Details
-
build
void build(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem> reflectiveClass) -
enableH2Feature
io.quarkus.deployment.builditem.NativeImageFeatureBuildItem enableH2Feature() -
indexH2Library
io.quarkus.deployment.builditem.IndexDependencyBuildItem indexH2Library()We need to index the H2 database core jar so to include custom extension types it's loading via reflection. -
listStatefulDataTypeFactories
io.quarkus.deployment.builditem.GeneratedResourceBuildItem listStatefulDataTypeFactories(io.quarkus.deployment.builditem.CombinedIndexBuildItem index) All implementors ofStatefulDataType.Factorymight get loaded reflectively. While we could hardcode the list included in H2, we prefer looking them up via Jandex so to also load custom implementations optionally provided by user code. -
listBasicDataTypes
io.quarkus.deployment.builditem.GeneratedResourceBuildItem listBasicDataTypes(io.quarkus.deployment.builditem.CombinedIndexBuildItem index) All implementors ofDataTypewhich have an INSTANCE field need this field to be accessible via reflection. While we could hardcode the list included in H2, we prefer looking them up via Jandex so to also load custom implementations optionally provided by user code.
-