Class ConstructorArgumentValues.ValueHolder
java.lang.Object
org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder
- All Implemented Interfaces:
- BeanMetadataElement
- Enclosing class:
- ConstructorArgumentValues
public static class ConstructorArgumentValues.ValueHolder
extends Object
implements BeanMetadataElement
Holder for a constructor argument value, with an optional type
attribute indicating the target type of the actual constructor argument.
- Since:
- 09.11.2003
- Author:
- Juergen Hoeller
- 
Constructor SummaryConstructorsConstructorDescriptionValueHolder(@Nullable Object value) Create a new ValueHolder for the given value.ValueHolder(@Nullable Object value, @Nullable String type) Create a new ValueHolder for the given value and type.Create a new ValueHolder for the given value, type and name.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Create a copy of this ValueHolder: that is, an independent ValueHolder instance with the same contents.Return the converted value of the constructor argument, after processed type conversion.getName()Return the name of the constructor argument.Return the configuration sourceObjectfor this metadata element (may benull).getType()Return the type of the constructor argument.getValue()Return the value for the constructor argument.booleanReturn whether this holder contains a converted value already (true), or whether the value still needs to be converted (false).voidsetConvertedValue(@Nullable Object value) Set the converted value of the constructor argument, after processed type conversion.voidSet the name of the constructor argument.voidSet the configuration sourceObjectfor this metadata element.voidSet the type of the constructor argument.voidSet the value for the constructor argument.
- 
Constructor Details- 
ValueHolder
- 
ValueHolder
- 
ValueHolder
 
- 
- 
Method Details- 
setValue
- 
getValue
- 
setType
- 
getType
- 
setName
- 
getName
- 
setSource
- 
getSourceDescription copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
- getSourcein interface- BeanMetadataElement
 
- 
isConvertedpublic boolean isConverted()Return whether this holder contains a converted value already (true), or whether the value still needs to be converted (false).
- 
setConvertedValue
- 
getConvertedValue
- 
copyCreate a copy of this ValueHolder: that is, an independent ValueHolder instance with the same contents.
 
-