Interface BeanRegistry.Spec<T>
- Type Parameters:
T- the bean type
- Enclosing interface:
BeanRegistry
public static interface BeanRegistry.Spec<T>
Specification for customizing a bean.
- Since:
- 7.0
- Author:
- Sebastien Deleuze
-
Method Summary
Modifier and TypeMethodDescriptionAllow for instantiating this bean on a background thread.description(String description) Set a human-readable description of this bean.fallback()Configure this bean as a fallback autowire candidate.Hint that this bean has an infrastructure role, meaning it has no relevance to the end-user.lazyInit()Configure this bean as lazily initialized.Configure this bean as not a candidate for getting autowired into another bean.order(int order) The sort order of this bean.primary()Configure this bean as a primary autowire candidate.Configure this bean with a prototype scope.supplier(Function<BeanRegistry.SupplierContext, T> supplier) Set the supplier to construct a bean instance.
-
Method Details
-
backgroundInit
BeanRegistry.Spec<T> backgroundInit()Allow for instantiating this bean on a background thread.- See Also:
-
description
Set a human-readable description of this bean.- See Also:
-
fallback
-
infrastructure
BeanRegistry.Spec<T> infrastructure()Hint that this bean has an infrastructure role, meaning it has no relevance to the end-user.- See Also:
-
lazyInit
-
notAutowirable
BeanRegistry.Spec<T> notAutowirable()Configure this bean as not a candidate for getting autowired into another bean.- See Also:
-
order
The sort order of this bean. This is analogous to the@Orderannotation.- See Also:
-
-
prototype
-
supplier
Set the supplier to construct a bean instance.- See Also:
-