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 SummaryModifier 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- 
backgroundInitBeanRegistry.Spec<T> backgroundInit()Allow for instantiating this bean on a background thread.- See Also:
 
- 
descriptionSet a human-readable description of this bean.- See Also:
 
- 
fallback
- 
infrastructureBeanRegistry.Spec<T> infrastructure()Hint that this bean has an infrastructure role, meaning it has no relevance to the end-user.- See Also:
 
- 
lazyInit
- 
notAutowirableBeanRegistry.Spec<T> notAutowirable()Configure this bean as not a candidate for getting autowired into another bean.- See Also:
 
- 
orderThe sort order of this bean. This is analogous to the@Orderannotation.- See Also:
 
- 
- 
prototype
- 
supplierSet the supplier to construct a bean instance.- See Also:
 
 
-