net.happyonroad.spring.SpringContextNamespaceHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-component-framework Show documentation
Show all versions of spring-component-framework Show documentation
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.context.config.ContextNamespaceHandler;
/** 扩展上下文名字空间解析,加速Component Scan过程 */
public class SpringContextNamespaceHandler extends ContextNamespaceHandler {
@Override
public void init() {
super.init();
registerBeanDefinitionParser("component-scan", new SpringComponentScanDefinitionParser());
}
}