public class DefaultBeanNameGenerator extends Object implements BeanNameGenerator
BeanNameGenerator
interface, delegating to
BeanDefinitionReaderUtils.generateBeanName(BeanDefinition, BeanDefinitionRegistry)
.Modifier and Type | Field and Description |
---|---|
static DefaultBeanNameGenerator |
INSTANCE
A convenient constant for a default
DefaultBeanNameGenerator instance,
as used for AbstractBeanDefinitionReader setup. |
Constructor and Description |
---|
DefaultBeanNameGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateBeanName(BeanDefinition definition,
BeanDefinitionRegistry registry)
Generate a bean name for the given bean definition.
|
public static final DefaultBeanNameGenerator INSTANCE
DefaultBeanNameGenerator
instance,
as used for AbstractBeanDefinitionReader
setup.public String generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)
BeanNameGenerator
generateBeanName
in interface BeanNameGenerator
definition
- the bean definition to generate a name forregistry
- the bean definition registry that the given definition
is supposed to be registered with