Spring Framework ComponentScanBeanDefinitionParser - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ComponentScanBeanDefinitionParser class.

This code example shows how to use the following methods:
	@Override 
	public void init() { 
		registerBeanDefinitionParser("property-placeholder", new PropertyPlaceholderBeanDefinitionParser()); 
		registerBeanDefinitionParser("property-override", new PropertyOverrideBeanDefinitionParser()); 
		registerBeanDefinitionParser("annotation-config", new AnnotationConfigBeanDefinitionParser());
		registerBeanDefinitionParser("component-scan", new ComponentScanBeanDefinitionParser());
		registerBeanDefinitionParser("load-time-weaver", new LoadTimeWeaverBeanDefinitionParser()); 
		registerBeanDefinitionParser("spring-configured", new SpringConfiguredBeanDefinitionParser()); 
		registerBeanDefinitionParser("mbean-export", new MBeanExportBeanDefinitionParser()); 
		registerBeanDefinitionParser("mbean-server", new MBeanServerBeanDefinitionParser()); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
import org.w3c.dom.Element;
 
/** 
 * @author Carsten Hufe 
 */ 
public class ModuleScanBeanDefinitionParser extends ComponentScanBeanDefinitionParser {
    private static final String BASE_PACKAGE_ATTRIBUTE = "base-package";
    private static final String MODULE_NAME_ATTRIBUTE = "module-name";
    private static final String AUTHOR_ATTRIBUTE = "author";
    private static final String AUTHOR_URL_ATTRIBUTE = "author-url";
    private static final String MODULE_VERSION_ATTRIBUTE = "module-version";
    private static final String PORTAL_VERSION_ATTRIBUTE = "portal-version";
    private ModuleConfiguration moduleConfiguration;
 
 
    @Override 
    public BeanDefinition parse(Element element, ParserContext parserContext) {
        moduleConfiguration = createModuleConfiguration(element);
        return super.parse(element, parserContext);
    } 
4
CodeRank