Example usage for org.springframework.security.config.http PortMappingsBeanDefinitionParser PortMappingsBeanDefinitionParser

List of usage examples for org.springframework.security.config.http PortMappingsBeanDefinitionParser PortMappingsBeanDefinitionParser

Introduction

In this page you can find the example usage for org.springframework.security.config.http PortMappingsBeanDefinitionParser PortMappingsBeanDefinitionParser.

Prototype

PortMappingsBeanDefinitionParser

Source Link

Usage

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);
}