class SimpleBeanArgument extends java.lang.Object implements BeanArgument
BeanArgument interface.| Modifier and Type | Field and Description |
|---|---|
private int |
index |
private java.lang.String |
typeName |
private static int |
UNSPECIFIED_INDEX |
private Metadata |
value |
| Constructor and Description |
|---|
SimpleBeanArgument(org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder valueHolder) |
SimpleBeanArgument(int index,
org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder valueHolder)
Constructs a new
SimpleBeanArgument instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Return the zero-based index into the parameter list of the factory method
or constructor to be invoked for this argument.
|
Metadata |
getValue()
Return the Metadata for the argument value.
|
java.lang.String |
getValueType()
Return the name of the value type to match the argument and convert the
value into when invoking the constructor or factory method.
|
private final int index
private final java.lang.String typeName
private final Metadata value
private static final int UNSPECIFIED_INDEX
public SimpleBeanArgument(int index,
org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder valueHolder)
SimpleBeanArgument instance.index - typeName - value - public SimpleBeanArgument(org.springframework.beans.factory.config.ConstructorArgumentValues.ValueHolder valueHolder)
public int getIndex()
BeanArgumentindex attribute for the bean. If not
explicitly set, this will return -1 and the initial ordering is defined
by its position in the BeanMetadata.getArguments() list.
This is specified by the index attribute.getIndex in interface BeanArgumentpublic Metadata getValue()
BeanArgumentvalue attribute.getValue in interface BeanArgumentpublic java.lang.String getValueType()
BeanArgumenttype attribute.getValueType in interface BeanArgumentnull if no type is specified.