Supplier that can be set on a
BeanDefinition
when details about the registered bean are needed to
supply the instance.
RegisteredBean, org.springframework.beans.factory.aot.BeanInstanceSupplier
| Modifier and Type | Method and Description |
|---|---|
| public default < the type of output of the V> InstanceSupplierafter function, and of the
composed function | Returns: a composed instance supplierthe function to apply after the instance is obtained after)Return a composed instance supplier that first obtains the instance from
this supplier and then applies the |
| public T | Returns: the supplied instancethe registered bean requesting the instance registeredBean)Get the supplied instance. |
| public default Method | Returns: the factory method used to create the instance, ornullReturn the factory method that this supplier uses to create the
instance, or |
| public default T | getWithException()
Implements org. |
| public static < the type of instance supplied by this supplier T> InstanceSupplier | Returns: a newInstanceSupplierthe source instance supplier instanceSupplier)Lambda friendly method that can be used to create an
|
| public static < the type of instance supplied by this supplier T> InstanceSupplier | Returns: a newInstanceSupplierthe source supplier supplier)Factory method to create an |
| public static < the type of instance supplied by this supplier T> InstanceSupplier | Returns: a newInstanceSupplierthe factory method being used factoryMethod, ThrowingSupplier<T> the source supplier supplier)Factory method to create an |
| andThen | back to summary |
|---|---|
| public default <V> InstanceSupplier Return a composed instance supplier that first obtains the instance from
this supplier and then applies the
| |
| get | back to summary |
|---|---|
| public T get(RegisteredBean registeredBean) throws Exception Get the supplied instance.
| |
| getFactoryMethod | back to summary |
|---|---|
| public default Method getFactoryMethod() Return the factory method that this supplier uses to create the
instance, or | |
| getWithException | back to summary |
|---|---|
| public default T getWithException() Implements org. Doc from org. Gets a result, possibly throwing a checked exception.
| |
| of | back to summary |
|---|---|
| public static <T> InstanceSupplier Lambda friendly method that can be used to create an
| |
| using | back to summary |
|---|---|
| public static <T> InstanceSupplier Factory method to create an
| |
| using | back to summary |
|---|---|
| public static <T> InstanceSupplier Factory method to create an
| |