public abstract class JBossASSimpleExpressionResolver extends Object implements SimpleExpressionResolver, PropertyResolver
SimpleExpressionResolver implementations that
handle traditional JBoss AS style expressions, with syntax key[,key]*[:defaultValue].
This class handles:
defaultValue if all key values are unresolvablekey valueskey is the string "/" or ":", returning
File.separator and File.pathSeparator, respectively.
SimpleExpressionResolver.ResolutionResult| Constructor and Description |
|---|
JBossASSimpleExpressionResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(String propertyName)
Deprecated.
|
SimpleExpressionResolver.ResolutionResult |
resolveExpressionContent(String expressionContent)
Parses the given expression, extracting any key if present and returning the resolved
value, if available, or, if not, returning any default value that is present.
|
protected abstract String |
resolveKey(String key)
Resolve a value with the given key.
|
@Deprecated public String resolve(String propertyName)
SimpleExpressionResolver and resolveExpressionContent(String)propertyName as expression key and passes it to resolveExpressionKey(String).
This method is retained for compatibility with legacy PropertyResolver usage.resolve in interface PropertyResolverpropertyName - the expression
The name to resolve.null if the property can not be resolved.public SimpleExpressionResolver.ResolutionResult resolveExpressionContent(String expressionContent)
resolveExpressionContent in interface SimpleExpressionResolverexpressionContent - the expressionCopyright © 2017 JBoss by Red Hat. All rights reserved.