Class BroadleafBeanNameGenerator

java.lang.Object
org.springframework.context.annotation.AnnotationBeanNameGenerator
org.broadleafcommerce.common.config.BroadleafBeanNameGenerator
All Implemented Interfaces:
org.springframework.beans.factory.support.BeanNameGenerator

public class BroadleafBeanNameGenerator extends org.springframework.context.annotation.AnnotationBeanNameGenerator

Prefixes a default Spring-generated bean name with 'bl', and also uppercases the first character of the default bean name. If the bean name is already prefixed with bl|, this does nothing.

Example: catalogEndpoint -> blCatalogEndpoint, blCatalogService -> blCatalogService

Author:
Phillip Verheyden (phillipuniverse)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.springframework.context.annotation.AnnotationBeanNameGenerator

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
     

    Methods inherited from class org.springframework.context.annotation.AnnotationBeanNameGenerator

    buildDefaultBeanName, buildDefaultBeanName, determineBeanNameFromAnnotation, isStereotypeWithNameValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BroadleafBeanNameGenerator

      public BroadleafBeanNameGenerator()
  • Method Details

    • generateBeanName

      public String generateBeanName(org.springframework.beans.factory.config.BeanDefinition definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      generateBeanName in interface org.springframework.beans.factory.support.BeanNameGenerator
      Overrides:
      generateBeanName in class org.springframework.context.annotation.AnnotationBeanNameGenerator