|
JBoss Metadata Common 7.2.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metadata.property.PropertyReplacers
public class PropertyReplacers
Provides standard PropertyReplacer implementations.
| Constructor Summary | |
|---|---|
PropertyReplacers()
|
|
| Method Summary | |
|---|---|
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. use resolvingExpressionReplacer(SimpleExpressionResolver) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyReplacers()
| Method Detail |
|---|
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 null
nullpublic 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 null
null
|
JBoss Metadata Common 7.2.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||