Package org.springframework.beans.factory.xml

Examples of org.springframework.beans.factory.xml.BeanDefinitionParser


        if (!namespaceMatchesVersion(element)) {
            pc.getReaderContext().fatal("You cannot use a spring-security-2.0.xsd schema with Spring Security 3.0." +
                    " Please update your schema declarations to the 3.0 schema.", element);
        }
        String name = pc.getDelegate().getLocalName(element);
        BeanDefinitionParser parser = parsers.get(name);

        if (parser == null) {
            if (Elements.HTTP.equals(name) || Elements.FILTER_SECURITY_METADATA_SOURCE.equals(name)) {
                reportMissingWebClasses(name, pc, element);
            } else {
                reportUnsupportedNodeType(name, pc, element);
            }
        }

        return parser.parse(element, pc);
    }
View Full Code Here


        if (action != null && action.getTagName().equals("description")) {
            action = DOMUtil.getNextSiblingElement(action);
        }

        if (action != null) {
            BeanDefinitionParser parser = actionRegistry.get(action.getTagName());
           
            if (parser !=  null) {
                builder.addPropertyValue("action", parser.parse(action, parserContext));
            } else {
                builder.addPropertyValue("action", parserContext.getReaderContext().getNamespaceHandlerResolver().resolve(action.getNamespaceURI()).parse(action, parserContext));
            }
        }
View Full Code Here

        if (action != null && action.getTagName().equals("description")) {
            action = DOMUtil.getNextSiblingElement(action);
        }

        if (action != null) {
            BeanDefinitionParser parser = actionRegistry.get(action.getTagName());
           
            if (parser ==  null) {
              beanDefinition.addPropertyValue("action", parserContext.getReaderContext().getNamespaceHandlerResolver().resolve(action.getNamespaceURI()).parse(action, parserContext));
            } else {
              beanDefinition.addPropertyValue("action", parser.parse(action, parserContext));
            }
        }

        BeanDefinitionParserUtils.setPropertyReference(beanDefinition, element.getAttribute("fault-validator"), "validator", "soapFaultValidator");
View Full Code Here

        ManagedList<BeanDefinition> actions = new ManagedList<BeanDefinition>();
       
        if (actionsContainerElement != null) {
            List<Element> actionList = DomUtils.getChildElements(actionsContainerElement);
            for (Element action : actionList) {
                BeanDefinitionParser parser = null;
                if (action.getNamespaceURI().equals(actionsContainerElement.getNamespaceURI())) {
                    parser = actionRegistry.get(action.getLocalName());
                }
               
                if (parser ==  null) {
                    actions.add(parserContext.getReaderContext().getNamespaceHandlerResolver().resolve(action.getNamespaceURI()).parse(action, parserContext));
                } else {
                    actions.add(parser.parse(action, parserContext));
                }
            }
        }
       
        return actions;
View Full Code Here

        if (!namespaceMatchesVersion(element)) {
            pc.getReaderContext().fatal("You cannot use a spring-security-2.0.xsd schema with Spring Security 3.0." +
                    " Please update your schema declarations to the 3.0 schema.", element);
        }
        String name = pc.getDelegate().getLocalName(element);
        BeanDefinitionParser parser = parsers.get(name);

        if (parser == null) {
            // SEC-1455. Load parsers when required, not just on init().
            loadParsers();
        }

        if (parser == null) {
            if (Elements.HTTP.equals(name) || Elements.FILTER_SECURITY_METADATA_SOURCE.equals(name)) {
                reportMissingWebClasses(name, pc, element);
            } else {
                reportUnsupportedNodeType(name, pc, element);
            }
        }

        return parser.parse(element, pc);
    }
View Full Code Here

    loadParsers();
  }

  public BeanDefinition parse(Element element, ParserContext parserContext) {
    String name = parserContext.getDelegate().getLocalName(element);
        BeanDefinitionParser parser = parsers.get(name);
        if (parser == null) {
            loadParsers();
        }
       
        if(parser == null) {
          // if missing classes from other modules (Facebook, Web, etc) report that separately   
          // their parsers should be supplied by the individual modules
          reportUnsupportedNodeType(name, parserContext, element);
          return null;
        }
       
        return parser.parse(element, parserContext);
  }
View Full Code Here

    loadParsers();
  }

  public BeanDefinition parse(Element element, ParserContext parserContext) {
    String name = parserContext.getDelegate().getLocalName(element);
        BeanDefinitionParser parser = parsers.get(name);
        if (parser == null) {
            loadParsers();
        }
       
        if(parser == null) {
          // if missing classes from other modules (Facebook, Web, etc) report that separately   
          // their parsers should be supplied by the individual modules
          reportUnsupportedNodeType(name, parserContext, element);
          return null;
        }
       
        return parser.parse(element, parserContext);
  }
View Full Code Here

    loadParsers();
  }

  public final BeanDefinition parse(Element element, ParserContext parserContext) {
    String name = parserContext.getDelegate().getLocalName(element);
        BeanDefinitionParser parser = parsers.get(name);
        if (parser == null) {
            loadParsers();
        }
       
        if(parser == null) {
          reportUnsupportedNodeType(name, parserContext, element);
          return null;
        }
       
        return parser.parse(element, parserContext);
  }
View Full Code Here

        for (Element action : childElements) {
            if (action.getLocalName().equals("description")) {
                continue;
            }

            BeanDefinitionParser parser = null;
            if (action.getNamespaceURI().equals(element.getNamespaceURI())) {
                parser = actionRegistry.get(action.getLocalName());
            }

            if (parser ==  null) {
                actions.add(parserContext.getReaderContext().getNamespaceHandlerResolver().resolve(action.getNamespaceURI()).parse(action, parserContext));
            } else {
                actions.add(parser.parse(action, parserContext));
            }
        }
       
        if (actions.size() > 0) {
            builder.addPropertyValue("actions", actions);
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.xml.BeanDefinitionParser

Copyright © 2018 www.massapicom. 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.