|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.AbstractValueSource
org.codehaus.plexus.interpolation.PropertiesBasedValueSource
public class PropertiesBasedValueSource
ValueSource
implementation that wraps a Properties
instance,
and does a simple lookup of the entire expression string as the parameter for
Properties.getProperty(String)
, returning the result as the resolved
value.
Constructor Summary | |
---|---|
PropertiesBasedValueSource(java.util.Properties properties)
Wrap the specified Properties object for use as a value source. |
Method Summary | |
---|---|
java.lang.Object |
getValue(java.lang.String expression)
|
Methods inherited from class org.codehaus.plexus.interpolation.AbstractValueSource |
---|
addFeedback, addFeedback, clearFeedback, getFeedback |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesBasedValueSource(java.util.Properties properties)
Properties
object for use as a value source.
Nulls are allowed.
properties
- The properties instance to wrap.Method Detail |
---|
public java.lang.Object getValue(java.lang.String expression)
Properties.getProperty(String)
, using the
entire expression as the key to lookup. If the wrapped properties instance
is null, simply return null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |