Package org.springframework.aot.hint
Class TypeHint
java.lang.Object
org.springframework.aot.hint.TypeHint
- All Implemented Interfaces:
ConditionalHint
A hint that describes the need for reflection on a type.
- Since:
- 6.0
- Author:
- Stephane Nicoll, Phillip Webb, Andy Wilkinson
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<TypeHint.Builder>
builtWith
(MemberCategory... memberCategories) Return the constructors that require reflection.fields()
Return the fields that require reflection.Return the member categories that apply.Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.getType()
Return the type that this hint handles.methods()
Return the methods that require reflection.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.aot.hint.ConditionalHint
conditionMatches
-
Method Details
-
getType
Return the type that this hint handles.- Returns:
- the type
-
getReachableType
Description copied from interface:ConditionalHint
Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.- Specified by:
getReachableType
in interfaceConditionalHint
- Returns:
- the reachable type, if any
-
fields
Return the fields that require reflection.- Returns:
- a stream of
FieldHint
-
constructors
Return the constructors that require reflection.- Returns:
- a stream of
ExecutableHint
-
methods
Return the methods that require reflection.- Returns:
- a stream of
ExecutableHint
-
getMemberCategories
Return the member categories that apply.- Returns:
- the member categories to enable
-
toString
-
builtWith
- Parameters:
memberCategories
- the memberCategories to apply- Returns:
- a consumer to apply the member categories
-