Package org.springframework.boot
Class LazyInitializationBeanFactoryPostProcessor
java.lang.Object
org.springframework.boot.LazyInitializationBeanFactoryPostProcessor
- All Implemented Interfaces:
BeanFactoryPostProcessor
,Ordered
public final class LazyInitializationBeanFactoryPostProcessor
extends Object
implements BeanFactoryPostProcessor, 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
- Author:
- Andy Wilkinson, Madhura Bhave, Tyler Van Gorder, Phillip Webb, Moritz Halbritter
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
LazyInitializationBeanFactoryPostProcessor
public LazyInitializationBeanFactoryPostProcessor()
-
-
Method Details
-
postProcessBeanFactory
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException - Specified by:
postProcessBeanFactory
in interfaceBeanFactoryPostProcessor
- Throws:
BeansException
-
getOrder
public int getOrder()
-