Class ReflectiveHierarchyBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem
-
public final class ReflectiveHierarchyBuildItem extends MultiBuildItem
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 (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
Nested Classes Modifier and Type Class Description static class
ReflectiveHierarchyBuildItem.Builder
static class
ReflectiveHierarchyBuildItem.DefaultIgnoreFieldPredicate
static class
ReflectiveHierarchyBuildItem.DefaultIgnoreMethodPredicate
static class
ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate
static class
ReflectiveHierarchyBuildItem.IgnoreAllowListedPredicate
-
Constructor Summary
Constructors Constructor Description ReflectiveHierarchyBuildItem(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<org.jboss.jandex.FieldInfo>
getIgnoreFieldPredicate()
Predicate<org.jboss.jandex.MethodInfo>
getIgnoreMethodPredicate()
Predicate<org.jboss.jandex.DotName>
getIgnoreTypePredicate()
org.jboss.jandex.IndexView
getIndex()
String
getSource()
org.jboss.jandex.Type
getType()
boolean
hasSource()
boolean
isSerialization()
-
-
-
Constructor Detail
-
ReflectiveHierarchyBuildItem
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type)
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 public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, 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, 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 Detail
-
getType
public org.jboss.jandex.Type getType()
-
getIndex
public org.jboss.jandex.IndexView getIndex()
-
getIgnoreTypePredicate
public Predicate<org.jboss.jandex.DotName> getIgnoreTypePredicate()
-
getIgnoreFieldPredicate
public Predicate<org.jboss.jandex.FieldInfo> getIgnoreFieldPredicate()
-
getIgnoreMethodPredicate
public Predicate<org.jboss.jandex.MethodInfo> getIgnoreMethodPredicate()
-
hasSource
public boolean hasSource()
-
isSerialization
public boolean isSerialization()
-
getSource
public String getSource()
-
-