Examples of parseBeanDefinitionElement()


Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

    List<Element> childElements = DomUtils.getChildElementsByTagName(element, "bean");
    BeanComponentDefinition innerComponentDefinition = null;
    if (childElements != null && childElements.size() == 1) {
      Element beanElement = childElements.get(0);
      BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
      BeanDefinitionHolder bdHolder = delegate.parseBeanDefinitionElement(beanElement);
      bdHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, bdHolder);
      BeanDefinition inDef = bdHolder.getBeanDefinition();
      innerComponentDefinition = new BeanComponentDefinition(inDef, bdHolder.getBeanName());
    }
    String ref = element.getAttribute(REF_ATTRIBUTE);
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

  private BeanDefinitionHolder handlerAnalyzerDefinition(Element element, RootBeanDefinition definition, ParserContext parserContext) {
    Element beanElement = DomUtils.getChildElementByTagName(element, BEAN_ELEMENT);
    if( beanElement!=null ) {
      //Compute the inner bean of the analyzer
      BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
      BeanDefinitionHolder holder = delegate.parseBeanDefinitionElement(beanElement, definition);
      if( holder!=null ) {
        holder = delegate.decorateBeanDefinitionIfRequired(beanElement, holder);
      }
      return holder;
    }
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

      Element beanElement = childElements.get(0);
            if (!"http://www.springframework.org/schema/beans".equals(beanElement.getNamespaceURI())) {
                throw new IllegalStateException ("Illegal inner child element");
            }
      BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
      BeanDefinitionHolder beanDefinitionHolder = delegate.parseBeanDefinitionElement(beanElement);
      beanDefinitionHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, beanDefinitionHolder);
      BeanDefinition beanDefinition = beanDefinitionHolder.getBeanDefinition();
      innerComponentDefinition = new BeanComponentDefinition(beanDefinition, beanDefinitionHolder.getBeanName());
    }
    return innerComponentDefinition;
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

        private BeanDefinitionHolder parseBeanDefinitionElement(final Element element) {
            assert element != null;

            BeanDefinitionParserDelegate parser = createBeanDefinitionParserDelegate(element);
            return parser.parseBeanDefinitionElement(element);
        }

        private void parseAndApplyDescription(final Element element, final BeanDefinition def) {
            assert element != null;
            assert def != null;
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

      Element beanElement = childElements.get(0);
            if (!"http://www.springframework.org/schema/beans".equals(beanElement.getNamespaceURI())) {
                throw new IllegalStateException ("Illegal inner child element");
            }
      BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
      BeanDefinitionHolder beanDefinitionHolder = delegate.parseBeanDefinitionElement(beanElement);
      beanDefinitionHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, beanDefinitionHolder);
      BeanDefinition beanDefinition = beanDefinitionHolder.getBeanDefinition();
      innerComponentDefinition = new BeanComponentDefinition(beanDefinition, beanDefinitionHolder.getBeanName());
    }
    return innerComponentDefinition;
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

      Element beanElement = childElements.get(0);
            if (!"http://www.springframework.org/schema/beans".equals(beanElement.getNamespaceURI())) {
                throw new IllegalStateException ("Illegal inner child element");
            }
      BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
      BeanDefinitionHolder beanDefinitionHolder = delegate.parseBeanDefinitionElement(beanElement);
      beanDefinitionHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, beanDefinitionHolder);
      BeanDefinition beanDefinition = beanDefinitionHolder.getBeanDefinition();
      innerComponentDefinition = new BeanComponentDefinition(beanDefinition, beanDefinitionHolder.getBeanName());
    }
    return innerComponentDefinition;
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

            return ref;
        }

        // 如果是bean
        else {
            BeanDefinitionHolder beanHolder = delegate.parseBeanDefinitionElement(element, containingBean);

            if (beanHolder != null) {
                beanHolder = delegate.decorateBeanDefinitionIfRequired(element, beanHolder, containingBean);
            }
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

            return ref;
        }

        // 如果是bean
        else {
            BeanDefinitionHolder beanHolder = delegate.parseBeanDefinitionElement(element, containingBean);

            if (beanHolder != null) {
                beanHolder = delegate.decorateBeanDefinitionIfRequired(element, beanHolder, containingBean);
            }
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

            return ref;
        }

        // �����bean
        else {
            BeanDefinitionHolder beanHolder = delegate.parseBeanDefinitionElement(element, containingBean);

            if (beanHolder != null) {
                beanHolder = delegate.decorateBeanDefinitionIfRequired(element, beanHolder, containingBean);
            }
View Full Code Here

Examples of org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement()

         Element beanElement = childElements.get(0);
         if (!"http://www.springframework.org/schema/beans".equals(beanElement.getNamespaceURI())) {
            throw new IllegalStateException("Illegal inner child element");
         }
         BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
         BeanDefinitionHolder beanDefinitionHolder = delegate.parseBeanDefinitionElement(beanElement);
         beanDefinitionHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, beanDefinitionHolder);
         BeanDefinition beanDefinition = beanDefinitionHolder.getBeanDefinition();
         innerComponentDefinition = new BeanComponentDefinition(beanDefinition, beanDefinitionHolder.getBeanName());
      }
      return innerComponentDefinition;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.