List of usage examples for org.springframework.security.config.http PortMappingsBeanDefinitionParser PortMappingsBeanDefinitionParser
PortMappingsBeanDefinitionParser
From source file:org.springframework.security.config.http.HttpSecurityBeanDefinitionParser.java
private BeanReference createPortMapper(Element elt, ParserContext pc) { // Register the portMapper. A default will always be created, even if no element // exists./* ww w .ja v a2s. c om*/ BeanDefinition portMapper = new PortMappingsBeanDefinitionParser() .parse(DomUtils.getChildElementByTagName(elt, Elements.PORT_MAPPINGS), pc); String portMapperName = pc.getReaderContext().generateBeanName(portMapper); pc.registerBeanComponent(new BeanComponentDefinition(portMapper, portMapperName)); return new RuntimeBeanReference(portMapperName); }