/**
* Get a basic Spring {@link GenericApplicationContext} with additional
* custom editors registered. The additional custom editors are automatically
* loaded from com.fortify.util.spring.propertyeditor (sub-)packages
* if they have the {@link Component} annotation.
* @return Basic Spring ApplicationContext with custom editors registered.
*/
public static final GenericApplicationContext getBaseContext() {
GenericApplicationContext context = new GenericApplicationContext();
context.setClassLoader(SpringContextUtil.class.getClassLoader());
CustomEditorConfigurer cec = new CustomEditorConfigurer();
cec.setCustomEditors(PROPERTY_EDITORS);
context.addBeanFactoryPostProcessor(cec);
return context;
}
SpringContextUtil.java 文件源码
java
阅读 89
收藏 0
点赞 0
评论 0
项目:FoDBugTrackerUtility
作者:
评论列表
文章目录