Class JBossASSimpleExpressionResolver
java.lang.Object
org.jboss.metadata.property.JBossASSimpleExpressionResolver
- All Implemented Interfaces:
SimpleExpressionResolver
- Direct Known Subclasses:
PropertiesPropertyResolver, SystemPropertyResolver
public abstract class JBossASSimpleExpressionResolver
extends Object
implements SimpleExpressionResolver
Base class for
SimpleExpressionResolver implementations that
handle traditional JBoss AS style expressions, with syntax key[,key]*[:defaultValue].
This class handles:
- any
defaultValueif allkeyvalues are unresolvable - separation of multiple comma-delimited
keyvalues - the special cases where
keyis the string "/" or ":", returningFile.separatorandFile.pathSeparator, respectively.
- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SimpleExpressionResolver
SimpleExpressionResolver.ResolutionResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveExpressionContent(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 StringresolveKey(String key) Resolve a value with the given key.
-
Constructor Details
-
JBossASSimpleExpressionResolver
public JBossASSimpleExpressionResolver()
-
-
Method Details
-
resolveExpressionContent
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. See the class javadoc for full details.- Specified by:
resolveExpressionContentin interfaceSimpleExpressionResolver- Parameters:
expressionContent- the expression- Returns:
- the resolved value, or null if the value cannot be resolved
-
resolveKey
-