@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()
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.