# Uses of Class
org.springframework.beans.factory.aot.BeanInstanceSupplier

Packages that use BeanInstanceSupplier
Package
Description
org.springframework.beans.factory.aot
AOT support for bean factories.

## Uses of BeanInstanceSupplier in org.springframework.beans.factory.aot

Methods in org.springframework.beans.factory.aot that return BeanInstanceSupplier
Modifier and Type
Method
Description
`static <T> BeanInstanceSupplier<T>`
BeanInstanceSupplier.`forConstructor(Class<?>... parameterTypes)`
Create a `BeanInstanceSupplier` that resolves arguments for the specified bean constructor.
`static <T> BeanInstanceSupplier<T>`
BeanInstanceSupplier.`forFactoryMethod(Class<?> declaringClass, String methodName, Class<?>... parameterTypes)`
Create a new `BeanInstanceSupplier` that resolves arguments for the specified factory method.
`BeanInstanceSupplier<T>`
BeanInstanceSupplier.`withGenerator(org.springframework.util.function.ThrowingBiFunction<RegisteredBean,AutowiredArguments,T> generator)`
Return a new `BeanInstanceSupplier` instance that uses the specified `generator` bi-function to instantiate the underlying bean.
`BeanInstanceSupplier<T>`
BeanInstanceSupplier.`withGenerator(org.springframework.util.function.ThrowingFunction<RegisteredBean,T> generator)`
Return a new `BeanInstanceSupplier` instance that uses the specified `generator` function to instantiate the underlying bean.
`BeanInstanceSupplier<T>`
BeanInstanceSupplier.`withGenerator(org.springframework.util.function.ThrowingSupplier<T> generator)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `withGenerator(ThrowingFunction)`
`BeanInstanceSupplier<T>`
BeanInstanceSupplier.`withShortcut(String... beanNames)`
Return a new `BeanInstanceSupplier` instance that uses direct bean name injection shortcuts for specific parameters.
`BeanInstanceSupplier<T>`
BeanInstanceSupplier.`withShortcuts(String... beanNames)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `withShortcut(String...)`