类 ResourceHintsPredicates
java.lang.Object
cn.taketoday.aot.hint.predicate.ResourceHintsPredicates
Generator of
ResourceHints predicates, testing whether the given hints
match the expected behavior for resources.- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Stephane Nicoll, Sam Brannen
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return a predicate that checks whether a resource hint is registered for the given bundle name.forResource(TypeReference type, String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package.forResource(String resourceName) Return a predicate that checks whether a resource hint is registered for the given resource name.private StringresolveAbsoluteResourceName(TypeReference type, String resourceName)
-
字段详细资料
-
CACHED_RESOURCE_PATTERNS
-
-
构造器详细资料
-
ResourceHintsPredicates
ResourceHintsPredicates()
-
-
方法详细资料
-
forBundle
Return a predicate that checks whether a resource hint is registered for the given bundle name.- 参数:
bundleName- the resource bundle name- 返回:
- the
RuntimeHintspredicate
-
forResource
Return a predicate that checks whether a resource hint is registered for the given resource name, located in the given type's package.For example,
forResource(org.example.MyClass, "myResource.txt")will match against"org/example/myResource.txt".If the given resource name is an absolute path (i.e., starts with a leading slash), the supplied type will be ignored. For example,
forResource(org.example.MyClass, "/myResource.txt")will match against"myResource.txt".- 参数:
type- the type's package where to look for the resourceresourceName- the resource name- 返回:
- the
RuntimeHintspredicate
-
resolveAbsoluteResourceName
-
forResource
Return a predicate that checks whether a resource hint is registered for the given resource name.A leading slash will be removed.
- 参数:
resourceName- the absolute resource name- 返回:
- the
RuntimeHintspredicate
-