Class PropertyReplacers
java.lang.Object
org.jboss.metadata.property.PropertyReplacers
Provides standard
PropertyReplacer implementations.- Author:
- John Bailey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyReplacernoop()Return a replacer that functions as a no-op.static PropertyReplacerReturn aPropertyReplacerthat uses the providedSimpleExpressionResolverto resolve any expressions found in the text.
-
Constructor Details
-
PropertyReplacers
public PropertyReplacers()
-
-
Method Details
-
noop
Return a replacer that functions as a no-op.- Returns:
- the replacer. Will not be
null
-
resolvingExpressionReplacer
Return aPropertyReplacerthat uses the providedSimpleExpressionResolverto resolve any expressions found in the text. The returned replacer searches for strings beginning with the string "${" and ending with the char '}', and passes the value within to the givenresolver. The replacer supports arbitrarily nested expressions, finding the inner-most expressions and resolving those before using the resolved values to compose the outer expressions. The replacer also supports recursive resolution, so if a resolved value is itself in the form of an expression, that expression will in turn be resolved.- Parameters:
resolver- The resolver used for any expressions being replaced. Cannot benull- Returns:
- the replacer. Will not be
null
-