Class RegisterStateManagementForReflectionFeature
java.lang.Object
io.quarkus.hibernate.orm.runtime.graal.RegisterStateManagementForReflectionFeature
- All Implemented Interfaces:
org.graalvm.nativeimage.hosted.Feature
public class RegisterStateManagementForReflectionFeature
extends Object
implements org.graalvm.nativeimage.hosted.Feature
Makes fields of reachable Hibernate StateManagement implementations accessible through
Class.getDeclaredField(String).
Hibernate ORM 7.4+ uses reflection to access the static INSTANCE field of
StateManagement implementations at runtime. This feature ensures those fields are
available for reflection in native mode.
See GitHub issue #54777.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graalvm.nativeimage.hosted.Feature
org.graalvm.nativeimage.hosted.Feature.AfterAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.AfterCompilationAccess, org.graalvm.nativeimage.hosted.Feature.AfterHeapLayoutAccess, org.graalvm.nativeimage.hosted.Feature.AfterImageWriteAccess, org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess, org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess, org.graalvm.nativeimage.hosted.Feature.BeforeImageWriteAccess, org.graalvm.nativeimage.hosted.Feature.BeforeUniverseBuildingAccess, org.graalvm.nativeimage.hosted.Feature.CompilationAccess, org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess, org.graalvm.nativeimage.hosted.Feature.FeatureAccess, org.graalvm.nativeimage.hosted.Feature.IsInConfigurationAccess, org.graalvm.nativeimage.hosted.Feature.OnAnalysisExitAccess, org.graalvm.nativeimage.hosted.Feature.QueryReachabilityAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidduringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess access) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graalvm.nativeimage.hosted.Feature
afterAnalysis, afterCompilation, afterHeapLayout, afterImageWrite, afterRegistration, beforeAnalysis, beforeCompilation, beforeImageWrite, beforeUniverseBuilding, cleanup, duringSetup, getRequiredFeatures, getURL, isInConfiguration, onAnalysisExit
-
Constructor Details
-
RegisterStateManagementForReflectionFeature
public RegisterStateManagementForReflectionFeature()
-
-
Method Details
-
getDescription
- Specified by:
getDescriptionin interfaceorg.graalvm.nativeimage.hosted.Feature
-
duringAnalysis
public void duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess access) - Specified by:
duringAnalysisin interfaceorg.graalvm.nativeimage.hosted.Feature
-