Class ReflectiveHierarchyBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem
Attempts to register a complete type hierarchy for reflection.
This is intended to be used to register types that are going to be serialized, e.g. by Jackson or some other JSON mapper.
This will do 'smart discovery' and in addition to registering the type itself it will also attempt to register the following:
- Superclasses - Component types of collections - Types used in bean properties (if method reflection is enabled) - Field types (if field reflection is enabled)
This discovery is applied recursively, so any additional types that are registered will also have their dependencies discovered
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
-
Constructor Summary
ConstructorDescriptionReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type) Deprecated.Use the Builder instead.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, String source) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, String source) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate) Deprecated.Use the Builder instead and provide a source for easy debugging.ReflectiveHierarchyBuildItem
(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source) Deprecated.Use the Builder instead and provide a source for easy debugging. -
Method Summary
-
Constructor Details
-
ReflectiveHierarchyBuildItem
Deprecated.Use the Builder instead. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index) Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate) Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate) Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, String source) Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source) Deprecated.Use the Builder instead and provide a source for easy debugging. -
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source) Deprecated.Use the Builder instead and provide a source for easy debugging.
-
-
Method Details
-
getType
public org.jboss.jandex.Type getType() -
getIndex
public org.jboss.jandex.IndexView getIndex() -
getIgnoreTypePredicate
-
getIgnoreFieldPredicate
-
getIgnoreMethodPredicate
-
hasSource
public boolean hasSource() -
isSerialization
public boolean isSerialization() -
getSource
-