Class ReflectiveClassBuildItem.Builder
java.lang.Object
io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem.Builder
- Enclosing class:
ReflectiveClassBuildItem
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Prefer theReflectiveClassBuildItem.builder(Collection)variant whenever possible.className(Collection<String> classNames) 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.This is a no-op and was kept for a couple more versions for extension compatibility (e.g. for Blaze-Persistence).methods()methods(boolean methods) Configures whether methods should be registered for reflection.publicConstructors(boolean publicConstructors) Configures whether public constructors should be registered for reflection.publicMethods(boolean publicMethods) Configures whether public methods should be registered for reflection.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
Prefer theReflectiveClassBuildItem.builder(Collection)variant whenever possible. -
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
-
publicConstructors
Configures whether public constructors should be registered for reflection. Setting this enables getting all public constructors for the class as well as invoking them reflectively. -
publicConstructors
-
methods
Configures whether methods should be registered for reflection. Setting this enables getting all methods declared by the class, regardless of their visibility, as well as invoking them reflectively, i.e.Class.getDeclaredMethods(). This does not include methods inherited from superclasses or interfaces. -
methods
-
publicMethods
Configures whether public methods should be registered for reflection. Setting this enables getting all public methods of the class, including those inherited from superclasses and interfaces, as well as invoking them reflectively. This is narrower thanmethods()in visibility (public only) but broader in scope (inherited methods included). -
publicMethods
-
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
-
finalFieldsWritable
@Deprecated(forRemoval=true) public ReflectiveClassBuildItem.Builder finalFieldsWritable(boolean finalFieldsWritable) Deprecated, for removal: This API element is subject to removal in a future version.This is a no-op and was kept for a couple more versions for extension compatibility (e.g. for Blaze-Persistence). We should be able to drop it in 3.31 but let's check before doing so. -
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
-