Interface AutowiredArguments
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolved arguments to be autowired.
- Since:
- 6.0
- Author:
- Phillip Webb, Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Tget(int index) Return the resolved argument at the specified index.default <T> TReturn the resolved argument at the specified index.default ObjectgetObject(int index) Return the resolved argument at the specified index.static AutowiredArgumentsFactory method to create a newAutowiredArgumentsinstance from the given object array.Object[]toArray()Return the arguments as an object array.
-
Method Details
-
get
Return the resolved argument at the specified index.- Type Parameters:
T- the type of the argument- Parameters:
index- the argument indexrequiredType- the required argument type- Returns:
- the argument
-
get
Return the resolved argument at the specified index.- Type Parameters:
T- the type of the argument- Parameters:
index- the argument index- Returns:
- the argument
-
getObject
Return the resolved argument at the specified index.- Parameters:
index- the argument index- Returns:
- the argument
-
toArray
Object[] toArray()Return the arguments as an object array.- Returns:
- the arguments as an object array
-
of
Factory method to create a newAutowiredArgumentsinstance from the given object array.- Parameters:
arguments- the arguments- Returns:
- a new
AutowiredArgumentsinstance
-