|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.PrefixedPropertiesValueSource
public class PrefixedPropertiesValueSource
Legacy support. Allow trimming one of a set of expression prefixes, the lookup
the remaining expression as a literal key from the wrapped properties instance.
This is just a convenience implementation to provide a shorthand for constructing
the properties value source and then wrapping it with a prefixed value-source wrapper.
Constructor Summary | |
---|---|
PrefixedPropertiesValueSource(java.util.List possiblePrefixes,
java.util.Properties properties,
boolean allowUnprefixedExpressions)
Wrap the specified properties file with a new PropertiesBasedValueSource , then
wrap that source with a new PrefixedValueSourceWrapper that uses the specified
expression-prefix list. |
|
PrefixedPropertiesValueSource(java.lang.String prefix,
java.util.Properties properties)
Wrap the specified properties file with a new PropertiesBasedValueSource , then
wrap that source with a new PrefixedValueSourceWrapper that uses the specified
expression prefix. |
Method Summary | |
---|---|
void |
clearFeedback()
|
java.util.List |
getFeedback()
|
java.lang.String |
getLastExpression()
|
java.lang.Object |
getValue(java.lang.String expression)
Delegates to PrefixedValueSourceWrapper.getValue(String) for the
instance wrapping the instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrefixedPropertiesValueSource(java.lang.String prefix, java.util.Properties properties)
PropertiesBasedValueSource
, then
wrap that source with a new PrefixedValueSourceWrapper
that uses the specified
expression prefix. Finally, set this wrapper source as a delegate for this
instance to use.
prefix
- The expression prefix to trimproperties
- The properties instance to wrappublic PrefixedPropertiesValueSource(java.util.List possiblePrefixes, java.util.Properties properties, boolean allowUnprefixedExpressions)
PropertiesBasedValueSource
, then
wrap that source with a new PrefixedValueSourceWrapper
that uses the specified
expression-prefix list. Finally, set this wrapper source as a delegate for this
instance to use.
possiblePrefixes
- The expression-prefix list to trimproperties
- The properties instance to wrapMethod Detail |
---|
public void clearFeedback()
public java.util.List getFeedback()
public java.lang.String getLastExpression()
getLastExpression
in interface QueryEnabledValueSource
public java.lang.Object getValue(java.lang.String expression)
PrefixedValueSourceWrapper.getValue(String)
for the
instance wrapping the instance.
getValue
in interface ValueSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |