public class PropertyReplacers extends Object
PropertyReplacer implementations.| Constructor and Description |
|---|
PropertyReplacers() |
| Modifier and Type | Method and Description |
|---|---|
static PropertyReplacer |
noop()
Return a replacer that functions as a no-op.
|
static PropertyReplacer |
resolvingExpressionReplacer(SimpleExpressionResolver resolver)
Return a
PropertyReplacer that uses the provided SimpleExpressionResolver to resolve any
expressions found in the text. |
static PropertyReplacer |
resolvingReplacer(PropertyResolver resolver)
Deprecated.
|
public static PropertyReplacer noop()
null@Deprecated public static PropertyReplacer resolvingReplacer(PropertyResolver resolver)
resolvingExpressionReplacer(SimpleExpressionResolver)PropertyReplacer that uses the provided PropertyResolver to resolve any
properties 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 given resolver. 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.resolver - the resolver used for any properties being replaced. Cannot be nullnullpublic static PropertyReplacer resolvingExpressionReplacer(SimpleExpressionResolver resolver)
PropertyReplacer that uses the provided SimpleExpressionResolver to 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 given resolver. 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.resolver - The resolver used for any expressions being replaced. Cannot be nullnullCopyright © 2017 JBoss by Red Hat. All rights reserved.