Class BroadleafErrorsWebAutoConfiguration.BroadleafErrorsWebRegistrar

java.lang.Object
com.broadleafcommerce.common.error.validation.web.autoconfigure.BroadleafErrorsWebAutoConfiguration.BroadleafErrorsWebRegistrar
All Implemented Interfaces:
org.springframework.context.annotation.ImportBeanDefinitionRegistrar
Enclosing class:
BroadleafErrorsWebAutoConfiguration

public static class BroadleafErrorsWebAutoConfiguration.BroadleafErrorsWebRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
Programmatic bean registrar to register the 'errorAttributes' bean with the correct targetType, allowing conditional checks (e.g. @ConditionalOnMissingBean(ErrorAttributes.class)) to succeed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar

    registerBeanDefinitions
  • Constructor Details

    • BroadleafErrorsWebRegistrar

      public BroadleafErrorsWebRegistrar()
  • Method Details

    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar