|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.EnvarBasedValueSource
public class EnvarBasedValueSource
ValueSource
which resolves expressions against the environment variables
available from the underlying operating system (and possibly, the shell environment
that created the present Java process). If the expression starts with 'env.',
this prefix is trimmed before resolving the rest as an environment variable name.
Constructor Summary | |
---|---|
EnvarBasedValueSource()
Create a new value source for interpolation based on shell environment variables. |
|
EnvarBasedValueSource(boolean caseSensitive)
Create a new value source for interpolation based on shell environment variables. |
Method Summary | |
---|---|
java.lang.Object |
getValue(java.lang.String expression)
If the expression starts with 'env.' then trim this prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvarBasedValueSource() throws java.io.IOException
java.io.IOException
public EnvarBasedValueSource(boolean caseSensitive) throws java.io.IOException
caseSensitive
- Whether the environment variable key should be treated in a
case-sensitive manner for lookups
java.io.IOException
Method Detail |
---|
public java.lang.Object getValue(java.lang.String expression)
ValueSource
instance was created.
getValue
in interface ValueSource
expression
- envar expression, like 'HOME' or 'env.HOME'
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |