| |
|
| java.lang.Object org.springframework.beans.factory.config.TypedStringValue
TypedStringValue | public TypedStringValue(String value)(Code) | | Create a new
TypedStringValue for the given String value.
Parameters: value - the String value |
TypedStringValue | public TypedStringValue(String value, Class targetType)(Code) | | Create a new
TypedStringValue for the given String value
and target type.
Parameters: value - the String value Parameters: targetType - the type to convert to |
TypedStringValue | public TypedStringValue(String value, String targetTypeName)(Code) | | Create a new
TypedStringValue for the given String value
and target type.
Parameters: value - the String value Parameters: targetTypeName - the type to convert to |
getTargetType | public Class getTargetType()(Code) | | Return the type to convert to.
|
getTargetTypeName | public String getTargetTypeName()(Code) | | Return the type to convert to.
|
getValue | public String getValue()(Code) | | Return the String value.
|
hasTargetType | public boolean hasTargetType()(Code) | | Return whether this typed String value carries a target type .
|
hashCode | public int hashCode()(Code) | | |
resolveTargetType | public Class resolveTargetType(ClassLoader classLoader) throws ClassNotFoundException(Code) | | Determine the type to convert to, resolving it from a specified class name
if necessary. Will also reload a specified Class from its name when called
with the target type already resolved.
Parameters: classLoader - the ClassLoader to use for resolving a (potential) class name the resolved type to convert to throws: ClassNotFoundException - if the type cannot be resolved |
setSource | public void setSource(Object source)(Code) | | Set the configuration source Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
|
setTargetType | public void setTargetType(Class targetType)(Code) | | Set the type to convert to.
Only necessary for manipulating a registered value,
for example in BeanFactoryPostProcessors.
See Also: PropertyPlaceholderConfigurer |
setTargetTypeName | public void setTargetTypeName(String targetTypeName)(Code) | | Specify the type to convert to.
|
|
|
|