public final class ReflectiveHierarchyBuildItem extends MultiBuildItem
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 and Description |
|---|
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index,
Predicate<org.jboss.jandex.DotName> ignorePredicate) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
Predicate<org.jboss.jandex.DotName> ignorePredicate) |
| Modifier and Type | Method and Description |
|---|---|
Predicate<org.jboss.jandex.DotName> |
getIgnorePredicate() |
org.jboss.jandex.IndexView |
getIndex() |
org.jboss.jandex.Type |
getType() |
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type)
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index)
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
Predicate<org.jboss.jandex.DotName> ignorePredicate)
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index,
Predicate<org.jboss.jandex.DotName> ignorePredicate)
public org.jboss.jandex.Type getType()
public org.jboss.jandex.IndexView getIndex()
public Predicate<org.jboss.jandex.DotName> getIgnorePredicate()
Copyright © 2020 JBoss by Red Hat. All rights reserved.