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 Constructor Description BeanNameGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Automatically produce camel-case names for the beans.
-
-
-
Method Detail
-
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
-
-