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
| Modifier and Type | Class and Description |
|---|---|
static class |
ReflectiveHierarchyBuildItem.DefaultIgnorePredicate |
static class |
ReflectiveHierarchyBuildItem.IgnoreWhiteListedPredicate |
| 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,
org.jboss.jandex.IndexView index,
Predicate<org.jboss.jandex.DotName> ignorePredicate,
String source) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index,
String source) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
Predicate<org.jboss.jandex.DotName> ignorePredicate) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
Predicate<org.jboss.jandex.DotName> ignorePredicate,
String source) |
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
String source) |
| Modifier and Type | Method and Description |
|---|---|
Predicate<org.jboss.jandex.DotName> |
getIgnorePredicate() |
org.jboss.jandex.IndexView |
getIndex() |
String |
getSource() |
org.jboss.jandex.Type |
getType() |
boolean |
hasSource() |
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 ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
String source)
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
org.jboss.jandex.IndexView index,
String source)
public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type,
Predicate<org.jboss.jandex.DotName> ignorePredicate,
String source)
Copyright © 2020 JBoss by Red Hat. All rights reserved.