Interface ConfigurationBeanCustomizer

  • All Superinterfaces:
    org.springframework.core.Ordered

    public interface ConfigurationBeanCustomizer
    extends org.springframework.core.Ordered
    A callback interface that allows for customizing a configuration bean after it has been bound but before it is registered in the Spring application context.

    Implementations of this interface can perform additional processing or modifications on the configuration bean. If multiple ConfigurationBeanCustomizer beans are present, they will be executed in the order determined by the Ordered interface.

    Example Usage

    {@code
     public class MyConfigurationBeanCustomizer implements ConfigurationBeanCustomizer {
    
         private final int order;
    
         public MyConfigurationBeanCustomizer(int order) {
             this.order = order;
         }
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    ConfigurationBeanBinder, ConfigurationBeanBindingPostProcessor
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void customize​(java.lang.String beanName, java.lang.Object configurationBean)
      Customize the configuration bean
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Method Detail

      • customize

        void customize​(java.lang.String beanName,
                       java.lang.Object configurationBean)
        Customize the configuration bean
        Parameters:
        beanName - the name of the configuration bean
        configurationBean - the configuration bean