java.lang.Object
io.avaje.inject.spi.SuppliedBean<B>
Holds beans supplied to the dependency injection.
These can be externally supplied dependencies or test doubles for testing purposes.
-
Method Summary
Modifier and TypeMethodDescriptionabstract Bbean()Return the bean instance to use for injection.abstract Class<?>[]Return the interfaces to additionally register along with the type.name()Return the qualifier name of the supplied bean.static SuppliedBeanCreate with a class type and bean instance.static <B> SuppliedBean<B>Create for a class type with name.static <B> SuppliedBean<B>Create for a class type with a consumer that runs once when the bean is obtained.static <B> SuppliedBean<B>Create a supplied bean for a generic type.type()Return the dependency injection target type.
-
Method Details
-
of
Create with a class type and bean instance. -
of
Create for a class type with a consumer that runs once when the bean is obtained. -
of
Create for a class type with name. -
ofType
Create a supplied bean for a generic type. -
type
Return the dependency injection target type. -
name
Return the qualifier name of the supplied bean. -
bean
Return the bean instance to use for injection. -
interfaces
Return the interfaces to additionally register along with the type.
-