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

cn.featherfly.rc.spring.DynamicConfigurationScanSpringRegist Maven / Gradle / Ivy

The newest version!
package cn.featherfly.rc.spring;

import java.util.Set;

import org.springframework.core.type.classreading.MetadataReader;

import cn.featherfly.common.io.ClassPathScanningProvider;

/**
 * 

* 自动注册配置信息到spring context *

* * @author 钟冀 */ public class DynamicConfigurationScanSpringRegist extends DynamicConfigurationSpringRegist { /** * @param basePackages * basePackages * @param configurationValuePersistenceReference * configurationValuePersistenceReference */ public DynamicConfigurationScanSpringRegist(Set basePackages, String configurationValuePersistenceReference) { super(configurationValuePersistenceReference); Set metadataReaders = new ClassPathScanningProvider() .findMetadata(basePackages.toArray(new String[] {})); setMetadataReaders(metadataReaders); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy