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> @Nullable T
get
(int index) Return the resolved argument at the specified index.default <T> @Nullable T
Return the resolved argument at the specified index.getObject
(int index) Return the resolved argument at the specified index.static AutowiredArguments
Factory method to create a newAutowiredArguments
instance 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 newAutowiredArguments
instance from the given object array.- Parameters:
arguments
- the arguments- Returns:
- a new
AutowiredArguments
instance
-