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
public class MyConfigurationBeanCustomizer implements ConfigurationBeanCustomizer {
private final int order;
public MyConfigurationBeanCustomizer(int order) {
this.order = order;
}
@Override
public int getOrder() {
return order;
}
@Override
public void customize(String beanName, Object configurationBean) {
// Customization logic here
}
}
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
customize
Customize the configuration bean- Parameters:
beanName
- the name of the configuration beanconfigurationBean
- the configuration bean
-