public static class

ConstructorArgumentValues.ValueHolder

extends Object
implements BeanMetadataElement
java.lang.Object
   ↳ org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder

Class Overview

Holder for a constructor argument value, with an optional type attribute indicating the target type of the actual constructor argument.

Summary

Public Constructors
ConstructorArgumentValues.ValueHolder(Object value)
Create a new ValueHolder for the given value.
ConstructorArgumentValues.ValueHolder(Object value, String type)
Create a new ValueHolder for the given value and type.
ConstructorArgumentValues.ValueHolder(Object value, String type, String name)
Create a new ValueHolder for the given value, type and name.
Public Methods
ConstructorArgumentValues.ValueHolder copy()
Create a copy of this ValueHolder: that is, an independent ValueHolder instance with the same contents.
synchronized Object getConvertedValue()
Return the converted value of the constructor argument, after processed type conversion.
String getName()
Return the name of the constructor argument.
Object getSource()
Return the configuration source Object for this metadata element (may be null).
String getType()
Return the type of the constructor argument.
Object getValue()
Return the value for the constructor argument.
synchronized boolean isConverted()
Return whether this holder contains a converted value already (true), or whether the value still needs to be converted (false).
synchronized void setConvertedValue(Object value)
Set the converted value of the constructor argument, after processed type conversion.
void setName(String name)
Set the name of the constructor argument.
void setSource(Object source)
Set the configuration source Object for this metadata element.
void setType(String type)
Set the type of the constructor argument.
void setValue(Object value)
Set the value for the constructor argument.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement

Public Constructors

public ConstructorArgumentValues.ValueHolder (Object value)

Also: SpringBeans

Create a new ValueHolder for the given value.

Parameters
value the argument value

public ConstructorArgumentValues.ValueHolder (Object value, String type)

Also: SpringBeans

Create a new ValueHolder for the given value and type.

Parameters
value the argument value
type the type of the constructor argument

public ConstructorArgumentValues.ValueHolder (Object value, String type, String name)

Also: SpringBeans

Create 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

Public Methods

public ConstructorArgumentValues.ValueHolder copy ()

Also: SpringBeans

Create a copy of this ValueHolder: that is, an independent ValueHolder instance with the same contents.

public synchronized Object getConvertedValue ()

Also: SpringBeans

Return the converted value of the constructor argument, after processed type conversion.

public String getName ()

Also: SpringBeans

Return the name of the constructor argument.

public Object getSource ()

Also: SpringBeans

Return the configuration source Object for this metadata element (may be null).

public String getType ()

Also: SpringBeans

Return the type of the constructor argument.

public Object getValue ()

Also: SpringBeans

Return the value for the constructor argument.

public synchronized boolean isConverted ()

Also: SpringBeans

Return whether this holder contains a converted value already (true), or whether the value still needs to be converted (false).

public synchronized void setConvertedValue (Object value)

Also: SpringBeans

Set the converted value of the constructor argument, after processed type conversion.

public void setName (String name)

Also: SpringBeans

Set the name of the constructor argument.

public void setSource (Object source)

Also: SpringBeans

Set the configuration source Object for this metadata element.

The exact type of the object will depend on the configuration mechanism used.

public void setType (String type)

Also: SpringBeans

Set the type of the constructor argument.

public void setValue (Object value)

Also: SpringBeans

Set the value for the constructor argument.