org.springframework.config.java.valuesource
Class MessageSourceValueSource

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

public class MessageSourceValueSource
extends AbstractStringBasedValueResolver

TODO: JAVADOC - ELIMINATE? ValueResolver implementation backed by a Spring MessageSource.

Author:
Rod Johnson

Constructor Summary
MessageSourceValueSource(org.springframework.context.MessageSource messageSource)
          Creates a new MessageSourceValueSource object.
 
Method Summary
 java.lang.String getString(java.lang.String name)
          Return value associated with name.
 
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

MessageSourceValueSource

public MessageSourceValueSource(org.springframework.context.MessageSource messageSource)
Creates a new MessageSourceValueSource object.

Parameters:
properties -
Method Detail

getString

public java.lang.String getString(java.lang.String name)
                           throws ValueResolutionException
Description copied from class: AbstractStringBasedValueResolver
Return value associated with name.

Specified by:
getString in class AbstractStringBasedValueResolver
Throws:
ValueResolutionException - if name cannot be found within this ValueResolver - it is incumbent upon all subclasses to adhere to these semantics.