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

net.happyonroad.spring.SpringComponentScanDefinitionParser Maven / Gradle / Ivy

Go to download

The spring component framework is used to setup a plugin based, micro-kernel, standalone application (today, we will support webapp in later releases) which is based on SpringFramework. It can help you decouple your application into several components clearly with zero invasion and keep your application consistent between develop time and runtime.

The newest version!
/**
 * @author XiongJie, Date: 13-11-4
 */
package net.happyonroad.spring;


import org.springframework.beans.factory.xml.XmlReaderContext;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.context.annotation.ComponentScanBeanDefinitionParser;

/**
 * 

加速Component Scan过程

* 加速方式:通过扫描候选资源时,限制在当前application的context里面扫描来实现 */ public class SpringComponentScanDefinitionParser extends ComponentScanBeanDefinitionParser { @Override protected ClassPathBeanDefinitionScanner createScanner(XmlReaderContext readerContext, boolean useDefaultFilters) { return super.createScanner(readerContext, useDefaultFilters); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy