org.springframework.config.java.valuesource
Class AbstractStringBasedValueSource
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStringBasedValueSource
public AbstractStringBasedValueSource()
resolve
public <T> T resolve(String name,
Class<?> requiredType)
throws ValueResolutionException
- Specified by:
resolve
in interface ValueSource
- Parameters:
name
- name of the propertyrequiredType
- 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.