Package ubic.gemma.core.context
Class BeanNameGenerator
java.lang.Object
ubic.gemma.core.context.BeanNameGenerator
- All Implemented Interfaces:
org.springframework.beans.factory.support.BeanNameGenerator
public class BeanNameGenerator
extends Object
implements org.springframework.beans.factory.support.BeanNameGenerator
Our \@Service etc. annotations in classes end up generating names with "Impl" on the end, unless we explicitly
provide a name. To avoid us having to do that explicit declaration, I wrote this.
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateBeanName
(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Automatically produce camel-case names for the beans.
-
Constructor Details
-
BeanNameGenerator
public BeanNameGenerator()
-
-
Method Details
-
generateBeanName
public String generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Automatically produce camel-case names for the beans.- Specified by:
generateBeanName
in interfaceorg.springframework.beans.factory.support.BeanNameGenerator
- Parameters:
definition
- definitionregistry
- registry- Returns:
- camelcase
-