类 RuntimeHintsPredicates
java.lang.Object
cn.taketoday.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);
- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Stephane Nicoll
-
字段概要
字段修饰符和类型字段说明private static final ProxyHintsPredicatesprivate static final ReflectionHintsPredicatesprivate static final ResourceHintsPredicatesprivate static final SerializationHintsPredicates -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static 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.
-
字段详细资料
-
reflection
-
resource
-
serialization
-
proxies
-
-
构造器详细资料
-
RuntimeHintsPredicates
private RuntimeHintsPredicates()
-
-
方法详细资料
-
reflection
Return a predicate generator forreflection hints.- 返回:
- the predicate generator
-
resource
Return a predicate generator forresource hints.- 返回:
- the predicate generator
-
serialization
Return a predicate generator forserialization hints.- 返回:
- the predicate generator
-
proxies
Return a predicate generator forproxy hints.- 返回:
- the predicate generator
-