All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.security.config.DebugBeanDefinitionParser Maven / Gradle / Ivy

There is a newer version: 6.3.3
Show newest version
package org.springframework.security.config;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.beans.factory.xml.BeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.security.config.debug.SecurityDebugBeanFactoryPostProcessor;
import org.w3c.dom.Element;

/**
 * @author Luke Taylor
 */
public class DebugBeanDefinitionParser implements BeanDefinitionParser {
    public BeanDefinition parse(Element element, ParserContext parserContext) {
        RootBeanDefinition debugPP = new RootBeanDefinition(SecurityDebugBeanFactoryPostProcessor.class);
        parserContext.getReaderContext().registerWithGeneratedName(debugPP);

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy