Interface ConfigurationBeanNameGenerator

All Superinterfaces:
BeanNameGenerator
All Known Implementing Classes:
FullyQualifiedConfigurationBeanNameGenerator

public interface ConfigurationBeanNameGenerator extends BeanNameGenerator
Extended variant of BeanNameGenerator for @Configuration class purposes, not only covering bean name generation for component and configuration classes themselves but also for @Bean methods.
Since:
7.0
Author:
Juergen Hoeller, Stephane Nicoll
See Also:
  • Method Details

    • deriveBeanName

      String deriveBeanName(MethodMetadata beanMethod, @Nullable String beanName)
      Derive a default bean name for the given @Bean method, providing the name attribute specified.
      Parameters:
      beanMethod - the method metadata for the @Bean method
      beanName - the name attribute or null if non is specified
      Returns:
      the default bean name to use