|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.interpolation.fixed.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 | |
|---|---|
Object |
getValue(String expression,
InterpolationState interpolationState)
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 IOException
IOException
public EnvarBasedValueSource(boolean caseSensitive)
throws IOException
caseSensitive - Whether the environment variable key should be treated in a
case-sensitive manner for lookups
IOException| Method Detail |
|---|
public Object getValue(String expression,
InterpolationState interpolationState)
ValueSource instance was created.
getValue in interface FixedValueSourceexpression - envar expression, like 'HOME' or 'env.HOME'
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||