com.hammurapi.config.bootstrap
Class MapTokenSource

java.lang.Object
  extended by com.hammurapi.config.bootstrap.MapTokenSource
All Implemented Interfaces:
TokenExpander.TokenSource

public class MapTokenSource
extends Object
implements TokenExpander.TokenSource

Implementation of token source with tokens stored in a map.

Author:
Pavel Vlasov

Constructor Summary
MapTokenSource(Map<String,String> map)
           
 
Method Summary
 String getToken(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTokenSource

public MapTokenSource(Map<String,String> map)
Method Detail

getToken

public String getToken(String name)
Specified by:
getToken in interface TokenExpander.TokenSource
Parameters:
name - Token name.
Returns:
Token value or null.