org.springframework.config.java.valuesource
Class AbstractStringBasedValueSource

java.lang.Object
  extended by org.springframework.config.java.valuesource.AbstractStringBasedValueSource
All Implemented Interfaces:
ValueSource
Direct Known Subclasses:
MessageSourceValueSource, PropertiesValueSource

public abstract class AbstractStringBasedValueSource
extends Object
implements ValueSource

Author:
Rod Johnson

Constructor Summary
AbstractStringBasedValueSource()
           
 
Method Summary
abstract  String getString(String name)
           
<T> T
resolve(String name, Class<?> requiredType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStringBasedValueSource

public AbstractStringBasedValueSource()
Method Detail

resolve

public <T> T resolve(String name,
                     Class<?> requiredType)
          throws ValueResolutionException
Specified by:
resolve in interface ValueSource
Parameters:
name - name of the property
requiredType - work around Java type erasure
Throws:
ValueResolutionException - if the property is not in the required format or the value is not found

getString

public abstract String getString(String name)
                          throws ValueResolutionException
Throws:
ValueResolutionException


Copyright � 2005-2008 Spring Framework. All Rights Reserved.