Class AbstractCustomBeanDefinitionParser

All Implemented Interfaces:
BeanDefinitionParser

public class AbstractCustomBeanDefinitionParser extends AbstractSingleBeanDefinitionParser
This is the base parser for all our custom syntax. It is a trivial extension of AbstractCustomBeanDefinitionParser, but allows for a single point of change to our behaviors.
  • Field Details

    • CUSTOM_PARSER_PROPERTIES_LOCATION

      @Nonnull @NotEmpty public static final String CUSTOM_PARSER_PROPERTIES_LOCATION
      Location to look for Properties that may affect custom parsing.
      See Also:
    • customProperties

      @Nullable private static Properties customProperties
      Property bad for custom parser properties to expose to subclasses.
    • LOG

      @Nonnull private static final org.slf4j.Logger LOG
      Logger.
  • Constructor Details

    • AbstractCustomBeanDefinitionParser

      public AbstractCustomBeanDefinitionParser()
  • Method Details

    • registerBeanDefinition

      protected void registerBeanDefinition(@Nonnull BeanDefinitionHolder definition, @Nonnull BeanDefinitionRegistry registry)
      The override is to warn if there is an ID clash within the same context.
      Overrides:
      registerBeanDefinition in class AbstractBeanDefinitionParser
    • getCustomProperty

      @Nullable public static String getCustomProperty(@Nonnull String name, @Nullable String defaultValue)
      Get a custom parser property, or return the default value specified.
      Parameters:
      name - property name
      defaultValue - default value
      Returns:
      the property value or the default if not set
      Since:
      9.0.0