java.lang.Object | |
↳ | org.springframework.beans.factory.config.TypedStringValue |
Holder for a typed String value. Can be added to bean definitions in order to explicitly specify a target type for a String value, for example for collection elements.
This holder will just store the String value and the target type. The actual conversion will be performed by the bean factory.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
TypedStringValue for the given String value. | |||||||||||
Create a new
TypedStringValue for the given String value
and target type. | |||||||||||
Create a new
TypedStringValue for the given String value
and target type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the configuration source
Object for this metadata element
(may be null ). | |||||||||||
Return the type name as actually specified for this particular value, if any.
| |||||||||||
Return the type to convert to.
| |||||||||||
Return the type to convert to.
| |||||||||||
Return the String value.
| |||||||||||
Return whether this typed String value carries a target type .
| |||||||||||
Return whether this value has been marked as dynamic.
| |||||||||||
Determine the type to convert to, resolving it from a specified class name
if necessary.
| |||||||||||
Mark this value as dynamic, i.e.
| |||||||||||
Set the configuration source
Object for this metadata element. | |||||||||||
Set the type name as actually specified for this particular value, if any.
| |||||||||||
Set the type to convert to.
| |||||||||||
Specify the type to convert to.
| |||||||||||
Set the String value.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.BeanMetadataElement
|
Create a new TypedStringValue
for the given String value.
value | the String value |
---|
Create a new TypedStringValue
for the given String value
and target type.
value | the String value |
---|---|
targetType | the type to convert to |
Create a new TypedStringValue
for the given String value
and target type.
value | the String value |
---|---|
targetTypeName | the type to convert to |
Return the configuration source Object
for this metadata element
(may be null
).
Return the type name as actually specified for this particular value, if any.
Return whether this typed String value carries a target type .
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.
classLoader | the ClassLoader to use for resolving a (potential) class name |
---|
ClassNotFoundException | if the type cannot be resolved |
---|
Mark this value as dynamic, i.e. as containing an expression and hence not being subject to caching.
Set the configuration source Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
Set the type name as actually specified for this particular value, if any.
Set the type to convert to.
Only necessary for manipulating a registered value, for example in BeanFactoryPostProcessors.
Specify the type to convert to.
Set the String value.
Only necessary for manipulating a registered value, for example in BeanFactoryPostProcessors.