Interface ConfigurationBeanNameGenerator

All Superinterfaces:
org.springframework.beans.factory.support.BeanNameGenerator
All Known Implementing Classes:
FullyQualifiedConfigurationBeanNameGenerator

public interface ConfigurationBeanNameGenerator extends org.springframework.beans.factory.support.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 without a name attribute specified on the annotation itself.
Since:
7.0
Author:
Juergen Hoeller
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    deriveBeanName(org.springframework.core.type.MethodMetadata beanMethod)
    Derive a default bean name for the given @Bean method, in the absence of a name attribute specified.

    Methods inherited from interface org.springframework.beans.factory.support.BeanNameGenerator

    generateBeanName
  • Method Details

    • deriveBeanName

      String deriveBeanName(org.springframework.core.type.MethodMetadata beanMethod)
      Derive a default bean name for the given @Bean method, in the absence of a name attribute specified.
      Parameters:
      beanMethod - the method metadata for the @Bean method
      Returns:
      the default bean name to use