Class AbstractFactoryBeanDefinitionParser

  • All Implemented Interfaces:
    org.springframework.beans.factory.xml.BeanDefinitionParser

    public abstract class AbstractFactoryBeanDefinitionParser
    extends AbstractBeanDefinitionParser
    This class makes it easy to create two simultaneous beans - a factory bean and the bean that the factory produces.
    • Constructor Detail

      • AbstractFactoryBeanDefinitionParser

        public AbstractFactoryBeanDefinitionParser()
    • Method Detail

      • setFactoriesAreAbstract

        public static void setFactoriesAreAbstract​(boolean b)
      • getDestroyMethod

        protected String getDestroyMethod()
      • doParse

        protected void doParse​(Element element,
                               org.springframework.beans.factory.xml.ParserContext ctx,
                               org.springframework.beans.factory.support.BeanDefinitionBuilder bean)
        Overrides:
        doParse in class AbstractBeanDefinitionParser
      • getFactoryClass

        protected abstract Class<?> getFactoryClass()
      • getRawFactoryClass

        protected Class<?> getRawFactoryClass()
      • getFactoryIdSuffix

        protected abstract String getFactoryIdSuffix()
        Returns:
        The Spring ID of the factory bean.