Class MapSymbolProvider
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.services.MapSymbolProvider
-
- All Implemented Interfaces:
SymbolProvider
public class MapSymbolProvider extends Object implements SymbolProvider
Provides symbol values from a Map of symbol names and symbol values (typically provided by a Tapestry IOC service configuration).
-
-
Constructor Summary
Constructors Constructor Description MapSymbolProvider(Map<String,String> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringvalueForSymbol(String symbolName)Returns the value for the symbol, or null if this provider can not provide a value.
-
-
-
Constructor Detail
-
MapSymbolProvider
public MapSymbolProvider(Map<String,String> configuration)
-
-
Method Detail
-
valueForSymbol
public String valueForSymbol(String symbolName)
Description copied from interface:SymbolProviderReturns the value for the symbol, or null if this provider can not provide a value. The value itself may contain symbols that will be recursively expanded.- Specified by:
valueForSymbolin interfaceSymbolProvider- Returns:
- the value or null
-
-