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.Builder |
static class |
ReflectiveHierarchyBuildItem.DefaultIgnoreFieldPredicate |
static class |
ReflectiveHierarchyBuildItem.DefaultIgnoreMethodPredicate |
static class |
ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate |
static class |
ReflectiveHierarchyBuildItem.IgnoreWhiteListedPredicate |
| Constructor and Description |
|---|
ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type)
Deprecated.
Use the Builder instead.
|
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,
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.
|
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,
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,
String source)
Deprecated.
Use the Builder instead and provide a source for easy debugging.
|
| Modifier and Type | Method and 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() |
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, String source)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, String source)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source)
@Deprecated public ReflectiveHierarchyBuildItem(org.jboss.jandex.Type type, org.jboss.jandex.IndexView index, Predicate<org.jboss.jandex.DotName> ignoreTypePredicate, String source)
public org.jboss.jandex.Type getType()
public org.jboss.jandex.IndexView getIndex()
public Predicate<org.jboss.jandex.DotName> getIgnoreTypePredicate()
public Predicate<org.jboss.jandex.FieldInfo> getIgnoreFieldPredicate()
public Predicate<org.jboss.jandex.MethodInfo> getIgnoreMethodPredicate()
public boolean hasSource()
public String getSource()
Copyright © 2021 JBoss by Red Hat. All rights reserved.