Interface BeanfactoryInitializer<f extends ListableBeanfactory>

Type Parameters:
f - the bean factory type
All Known Implementing Classes:
DynamicPropertyRegistrarBeanInitializer

public interface BeanfactoryInitializer<f extends ListableBeanfactory>
Callback interface for initializing a Spring ListableBeanfactory prior to entering the singleton pre-instantiation phase. Can be used to trigger early initialization of specific beans before regular singletons.

Can be programmatically applied to a ListableBeanfactory instance. In an ApplicationContext, beans of type BeanfactoryInitializer will be autodetected and automatically applied to the underlying bean factory.

Since:
6.2
Author:
Juergen Hoeller
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize(f beanfactory)
    Initialize the given bean factory.
  • Method Details

    • initialize

      void initialize(f beanfactory)
      Initialize the given bean factory.
      Parameters:
      beanfactory - the bean factory to bootstrap