Class RuntimeHintsPredicates
java.lang.Object
org.springframework.aot.hint.predicate.RuntimeHintsPredicates
Static generator of predicates that test whether the given 
RuntimeHints
 instance matches the expected behavior for reflection, resource, serialization,
 or proxy generation.
 This utility class can be used by RuntimeHintsRegistrar to conditionally
 register hints depending on what's present already. This can also be used as a
 testing utility for checking proper registration of hints:
 
Predicate<RuntimeHints> predicate = RuntimeHintsPredicates.reflection().onMethod(MyClass.class, "someMethod").invoke(); assertThat(predicate).accepts(runtimeHints);
- Since:
- 6.0
- Author:
- Brian Clozel, Stephane Nicoll
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProxyHintsPredicatesproxies()Return a predicate generator forproxy hints.static ReflectionHintsPredicatesReturn a predicate generator forreflection hints.static ResourceHintsPredicatesresource()Return a predicate generator forresource hints.static SerializationHintsPredicatesReturn a predicate generator forserialization hints.
- 
Method Details- 
reflectionReturn a predicate generator forreflection hints.- Returns:
- the predicate generator
 
- 
resourceReturn a predicate generator forresource hints.- Returns:
- the predicate generator
 
- 
serializationReturn a predicate generator forserialization hints.- Returns:
- the predicate generator
 
- 
proxiesReturn a predicate generator forproxy hints.- Returns:
- the predicate generator
 
 
-