public class AffixesRemovingBeanNameGenerator
extends org.springframework.context.annotation.AnnotationBeanNameGenerator
AnnotationBeanNameGenerator starting with "Default" are
returned without this prefix. e.g. defaultMailService becomes mailService.
Bean names generated by AnnotationBeanNameGenerator ending with "Impl" are
returned without this suffix. e.g. mailServiceImpl becomes mailService.| Constructor and Description |
|---|
AffixesRemovingBeanNameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
public String generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
generateBeanName in interface org.springframework.beans.factory.support.BeanNameGeneratorgenerateBeanName in class org.springframework.context.annotation.AnnotationBeanNameGeneratorCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.