org.codehaus.plexus.util.interpolation

Class EnvarBasedValueSource

public class EnvarBasedValueSource extends Object implements ValueSource

Version: $Id: EnvarBasedValueSource.java 5956 2007-02-28 08:26:16Z olamy $

Field Summary
booleancaseSensitive
Propertiesenvars
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
ObjectgetValue(String expression)

Field Detail

caseSensitive

private final boolean caseSensitive

envars

private Properties envars

Constructor Detail

EnvarBasedValueSource

public EnvarBasedValueSource()
Create a new value source for interpolation based on shell environment variables. In this case, envar keys ARE CASE SENSITIVE.

Throws: IOException

EnvarBasedValueSource

public EnvarBasedValueSource(boolean caseSensitive)
Create a new value source for interpolation based on shell environment variables.

Parameters: caseSensitive Whether the environment variable key should be treated in a case-sensitive manner for lookups

Throws: IOException

Method Detail

getValue

public Object getValue(String expression)