Top Description Methods
org.springframework.beans.factory.aot

public Interface AutowiredArguments

Annotations
@FunctionalInterface
Imports
org.springframework.lang.Nullable, org.springframework.util.Assert, .ClassUtils

Resolved arguments to be autowired.
Authors
Phillip Webb, Stephane Nicoll
Since
6.0
See Also
BeanInstanceSupplier, AutowiredMethodArgumentsResolver

Method Summary

Modifier and TypeMethod and Description
public default <
the type of the argument
T
>
T

Returns:

the argument
get
(int
the argument index
index
,
Class<T>
the required argument type
requiredType
)

Return the resolved argument at the specified index.

public default <
the type of the argument
T
>
T

Returns:

the argument
get
(int
the argument index
index
)

Return the resolved argument at the specified index.

public default Object

Returns:

the argument
getObject
(int
the argument index
index
)

Return the resolved argument at the specified index.

public static AutowiredArguments

Returns:

a new AutowiredArguments instance
of
(Object[]
the arguments
arguments
)

Factory method to create a new AutowiredArguments instance from the given object array.

public Object[]

Returns:

the arguments as an object array
toArray
()

Return the arguments as an object array.

Method Detail

getback to summary
public default <T> T get(int index, Class<T> requiredType)

Return the resolved argument at the specified index.

Parameters
<T>
the type of the argument
index:int

the argument index

requiredType:Class<T>

the required argument type

Returns:T

the argument

Annotations
@SuppressWarnings:unchecked
@Nullable
getback to summary
public default <T> T get(int index)

Return the resolved argument at the specified index.

Parameters
<T>
the type of the argument
index:int

the argument index

Returns:T

the argument

Annotations
@SuppressWarnings:unchecked
@Nullable
getObjectback to summary
public default Object getObject(int index)

Return the resolved argument at the specified index.

Parameters
index:int

the argument index

Returns:Object

the argument

Annotations
@Nullable
ofback to summary
public static AutowiredArguments of(Object[] arguments)

Factory method to create a new AutowiredArguments instance from the given object array.

Parameters
arguments:Object[]

the arguments

Returns:AutowiredArguments

a new AutowiredArguments instance

toArrayback to summary
public Object[] toArray()

Return the arguments as an object array.

Returns:Object[]

the arguments as an object array