Class MessagesDefaultBasenameAddingPostProcessor

java.lang.Object
com.broadleafcommerce.common.extension.i18n.MessagesDefaultBasenameAddingPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public abstract class MessagesDefaultBasenameAddingPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Appends our default basename to the basenames set for the MessageSource at the lowest priority, so any message bundles defined by a user will take precedence.
  • Constructor Details

    • MessagesDefaultBasenameAddingPostProcessor

      public MessagesDefaultBasenameAddingPostProcessor()
  • Method Details

    • postProcessBeforeInitialization

      @Nullable public Object postProcessBeforeInitialization(Object bean, @NonNull String beanName)
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
    • addMessagesDefaultBasenames

      protected abstract void addMessagesDefaultBasenames(Set<String> basenames)
      Adds the default basenames to the messages basename set.
      Parameters:
      basenames - The existing basenames to add to.