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.
- 
Constructor SummaryConstructorsConstructorDescriptionValueHolder(Object value) Create a new ValueHolder for the given value.ValueHolder(Object value, String type) Create a new ValueHolder for the given value and type.ValueHolder(Object value, String type, String name) 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(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- 
ValueHolderCreate a new ValueHolder for the given value.- Parameters:
- value- the argument value
 
- 
ValueHolderCreate a new ValueHolder for the given value and type.- Parameters:
- value- the argument value
- type- the type of the constructor argument
 
- 
ValueHolderCreate a new ValueHolder for the given value, type and name.- Parameters:
- value- the argument value
- type- the type of the constructor argument
- name- the name of the constructor argument
 
 
- 
- 
Method Details- 
setValueSet the value for the constructor argument.
- 
getValueReturn the value for the constructor argument.
- 
setTypeSet the type of the constructor argument.
- 
getTypeReturn the type of the constructor argument.
- 
setNameSet the name of the constructor argument.
- 
getNameReturn the name of the constructor argument.
- 
setSourceSet the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used. 
- 
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).
- 
setConvertedValueSet the converted value of the constructor argument, after processed type conversion.
- 
getConvertedValueReturn the converted value of the constructor argument, after processed type conversion.
- 
copyCreate a copy of this ValueHolder: that is, an independent ValueHolder instance with the same contents.
 
-