Class RuntimeHintsPredicates

java.lang.Object
org.springframework.aot.hint.predicate.RuntimeHintsPredicates

public abstract class RuntimeHintsPredicates extends Object
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