Class 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

    • 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()