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 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

  • Constructor Details

    • 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 Details