@Priority(value=400) public final class FileResolver extends Object implements ExpressionResolver
Property resolver implementation that tries to load the given resource from the current file system.
If the Resources module is available this module is used for resolving the expression. It can be
explicitly addressed by prefixing file:, e.g. ${file:c:/temp/mytext.txt}.
| Constructor and Description |
|---|
FileResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String expression)
Evaluates the given expression.
|
String |
getResolverPrefix()
Get the unique resolver prefix.
|
public String getResolverPrefix()
ExpressionResolverPriority
annotation.getResolverPrefix in interface ExpressionResolverpublic String evaluate(String expression)
ExpressionResolverevaluate in interface ExpressionResolverexpression - the expression to be evaluated, not null. If a resolver was addressed explicitly,
the prefix is removed prior to calling this method.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.