public class DefaultBeanNameGenerator extends java.lang.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 |
---|---|
java.lang.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 java.lang.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