org.springframework.config.java.valuesource
Class PropertiesValueResolver

java.lang.Object
  extended by org.springframework.config.java.valuesource.AbstractStringBasedValueResolver
      extended by org.springframework.config.java.valuesource.PropertiesValueResolver
All Implemented Interfaces:
ValueResolver

public class PropertiesValueResolver
extends AbstractStringBasedValueResolver

Resolves values from a Properties object. TODO: JAVADOC - explain relationship to env variables

Author:
Rod Johnson, Chris Beams

Constructor Summary
PropertiesValueResolver(java.util.Properties properties)
          Creates a new PropertiesValueResolver object.
 
Method Summary
 java.lang.String getString(java.lang.String name)
          Resolves name against the supplied Properties object.
 
Methods inherited from class org.springframework.config.java.valuesource.AbstractStringBasedValueResolver
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesValueResolver

public PropertiesValueResolver(java.util.Properties properties)
Creates a new PropertiesValueResolver object.

Method Detail

getString

public java.lang.String getString(java.lang.String name)
                           throws ValueResolutionException
Resolves name against the supplied Properties object.

Specified by:
getString in class AbstractStringBasedValueResolver
Throws:
ValueResolutionException - if name does not exist as a key in the supplied Properties object