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 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 interface org.springframework.beans.factory.support.BeanNameGenerator
      Parameters:
      definition - definition
      registry - registry
      Returns:
      camelcase