Interface BeanArgument
-
@ConsumerType public interface BeanArgumentMetadata for a factory method or constructor argument of a bean. The arguments of a bean are obtained fromBeanMetadata.getArguments(). This is specified by theargumentelements of a bean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetIndex()Return the zero-based index into the parameter list of the factory method or constructor to be invoked for this argument.MetadatagetValue()Return the Metadata for the argument value.java.lang.StringgetValueType()Return the name of the value type to match the argument and convert the value into when invoking the constructor or factory method.
-
-
-
Method Detail
-
getValue
Metadata getValue()
Return the Metadata for the argument value. This is specified by thevalueattribute.- Returns:
- The Metadata for the argument value.
-
getValueType
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. This is specified by thetypeattribute.- Returns:
- The name of the value type to convert the value into, or
nullif no type is specified.
-
getIndex
int getIndex()
Return the zero-based index into the parameter list of the factory method or constructor to be invoked for this argument. This is determined by specifying theindexattribute for the bean. If not explicitly set, this will return -1 and the initial ordering is defined by its position in theBeanMetadata.getArguments()list. This is specified by theindexattribute.- Returns:
- The zero-based index of the parameter, or -1 if no index is specified.
-
-