@Priority(value=300) public final class ResourceResolver extends Object implements ExpressionResolver
Property resolver implementation that tries to load the given resource from the current classpath using the
Thread Context classloader, and as fallback from the classloader that loaded this module and system classloader.
It can be explicitly addressed by prefixing resource:
, e.g. ${resource:META-INF/VERSION}
.
If the Resources
module is available this module is used for resolving the expression.
Constructor and Description |
---|
ResourceResolver() |
Modifier and Type | Method and Description |
---|---|
String |
evaluate(String expression)
Evaluates the given expression.
|
String |
getResolverPrefix()
Get the unique resolver prefix.
|
public String getResolverPrefix()
ExpressionResolver
Priority
annotation.getResolverPrefix
in interface ExpressionResolver
public String evaluate(String expression)
ExpressionResolver
evaluate
in interface ExpressionResolver
expression
- 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.