类 ResourcePatternHint
java.lang.Object
cn.taketoday.aot.hint.ResourcePatternHint
- 所有已实现的接口:
ConditionalHint
A hint that describes resources that should be made available at runtime.
Each pattern may be a simple path which has a one-to-one mapping to a
resource on the classpath, or alternatively may contain the special
* character to indicate a wildcard match. For example:
file.properties: matches just thefile.propertiesfile at the root of the classpath.com/example/file.properties: matches just thefile.propertiesfile incom/example/.*.properties: matches all the files with a.propertiesextension anywhere in the classpath.com/example/*.properties: matches all the files with a.propertiesextension incom/example/and its child directories at any depth.com/example/*: matches all the files incom/example/and its child directories at any depth.
A resource pattern must not start with a slash (/) unless it is the
root directory.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Brian Clozel, Sebastien Deleuze, Sam Brannen
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
从接口继承的方法 cn.taketoday.aot.hint.ConditionalHint
conditionMatches
-
字段详细资料
-
pattern
-
reachableType
-
-
构造器详细资料
-
ResourcePatternHint
ResourcePatternHint(String pattern, @Nullable TypeReference reachableType)
-
-
方法详细资料
-
getPattern
Return the pattern to use for identifying the resources to match.- 返回:
- the pattern
-
toRegex
Return the regexPatternto use for identifying the resources to match.- 返回:
- the regex pattern
-
getReachableType
从接口复制的说明:ConditionalHintReturn the type that should be reachable for this hint to apply, ornullif this hint should always been applied.- 指定者:
getReachableType在接口中ConditionalHint- 返回:
- the reachable type, if any
-
equals
-
hashCode
public int hashCode()
-