Class LazyInitializationBeanFactoryPostProcessor
java.lang.Object
org.springframework.boot.LazyInitializationBeanFactoryPostProcessor
- All Implemented Interfaces:
- org.springframework.beans.factory.config.BeanFactoryPostProcessor,- org.springframework.core.Ordered
public final class LazyInitializationBeanFactoryPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered
BeanFactoryPostProcessor to set lazy-init on bean definitions that are not
 excluded and have not already had a value
 explicitly set.
 
 Note that SmartInitializingSingletons are
 automatically excluded from lazy initialization to ensure that their
 callback method is
 invoked.
 
 Beans that are in the infrastructure role
 are automatically excluded from lazy initialization, too.
- Since:
- 2.2.0
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetOrder()voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) 
- 
Constructor Details- 
LazyInitializationBeanFactoryPostProcessorpublic LazyInitializationBeanFactoryPostProcessor()
 
- 
- 
Method Details- 
postProcessBeanFactorypublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
- postProcessBeanFactoryin interface- org.springframework.beans.factory.config.BeanFactoryPostProcessor
- Throws:
- org.springframework.beans.BeansException
 
- 
getOrderpublic int getOrder()- Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
 
-