org.ow2.util.substitution.resolver
Class MapResolver

java.lang.Object
  extended by org.ow2.util.substitution.resolver.MapResolver
All Implemented Interfaces:
IPropertyResolver

public class MapResolver
extends Object
implements IPropertyResolver

Resolve values from a Map.

Author:
Guillaume Sauthier

Constructor Summary
MapResolver(Map<String,String> env)
           
 
Method Summary
 String resolve(String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapResolver

public MapResolver(Map<String,String> env)
Method Detail

resolve

public String resolve(String expression)
Specified by:
resolve in interface IPropertyResolver
Parameters:
expression - a property name
Returns:
the value related to the expression, or null if not found.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.