Class ReflectiveClassBuildItem.Builder
java.lang.Object
io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem.Builder
- Enclosing class:
ReflectiveClassBuildItem
-
Method Summary
Modifier and TypeMethodDescriptionbuild()classes()classes(boolean classes) Configures whether declared classes should be registered for reflection.constructors(boolean constructors) Configures whether constructors should be registered for reflection (true by default).fields()fields(boolean fields) Configures whether fields should be registered for reflection.finalFieldsWritable(boolean finalFieldsWritable) Deprecated, for removal: This API element is subject to removal in a future version.As of GraalVM 21.2 finalFieldsWritable is no longer needed when registering fields for reflection.methods()methods(boolean methods) Configures whether methods should be registered for reflection.queryConstructors(boolean queryConstructors) Configures whether constructors should be registered for reflection, for query purposes only.queryMethods(boolean queryMethods) Configures whether declared methods should be registered for reflection, for query purposes only, i.e.serialization(boolean serialization) Configures whether serialization support should be enabled for the class.unsafeAllocated(boolean unsafeAllocated) Configures whether the class can be allocated in an unsafe manner (through JNI).weak()weak(boolean weak)
-
Method Details
-
className
-
constructors
Configures whether constructors should be registered for reflection (true by default). Setting this enables getting all declared constructors for the class as well as invoking them reflectively. -
constructors
-
queryConstructors
Configures whether constructors should be registered for reflection, for query purposes only. Setting this enables getting all declared constructors for the class but does not allow invoking them reflectively. -
queryConstructors
-
methods
Configures whether methods should be registered for reflection. Setting this enables getting all declared methods for the class as well as invoking them reflectively. -
methods
-
queryMethods
Configures whether declared methods should be registered for reflection, for query purposes only, i.e.Class.getDeclaredMethods(). Setting this enables getting all declared methods for the class but does not allow invoking them reflectively. -
queryMethods
-
fields
Configures whether fields should be registered for reflection. Setting this enables getting all declared fields for the class as well as accessing them reflectively. -
fields
-
classes
Configures whether declared classes should be registered for reflection. Setting this enables getting all declared classes through Class.getClasses(). -
classes
-
finalFieldsWritable
@Deprecated(forRemoval=true) public ReflectiveClassBuildItem.Builder finalFieldsWritable(boolean finalFieldsWritable) Deprecated, for removal: This API element is subject to removal in a future version.As of GraalVM 21.2 finalFieldsWritable is no longer needed when registering fields for reflection. This will be removed in a future version of Quarkus. -
weak
-
weak
-
serialization
Configures whether serialization support should be enabled for the class. -
serialization
-
unsafeAllocated
Configures whether the class can be allocated in an unsafe manner (through JNI). -
reason
-
unsafeAllocated
-
build
-