PropertyResolver, SimpleExpressionResolverPropertiesPropertyResolver, SystemPropertyResolverpublic abstract class JBossASSimpleExpressionResolver extends java.lang.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 | Description |
|---|---|
JBossASSimpleExpressionResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
resolve(java.lang.String propertyName) |
Deprecated.
|
SimpleExpressionResolver.ResolutionResult |
resolveExpressionContent(java.lang.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 java.lang.String |
resolveKey(java.lang.String key) |
Resolve a value with the given key.
|
@Deprecated public java.lang.String resolve(java.lang.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(java.lang.String expressionContent)
resolveExpressionContent in interface SimpleExpressionResolverexpressionContent - the expressionprotected abstract java.lang.String resolveKey(java.lang.String key)
key - the key. Will not be nullnull if no value corresponds to keyCopyright © 2018 JBoss by Red Hat. All rights reserved.