use of com.baidu.disconf.client.common.model.DisconfCenterBaseModel in project disconf by knightliao.
the class StaticScannerFileMgrImpl method getDisconfFiles.
/**
* 获取配置文件数据
*/
private static List<DisconfCenterBaseModel> getDisconfFiles(ScanStaticModel scanModel) {
List<DisconfCenterBaseModel> disconfCenterFiles = new ArrayList<DisconfCenterBaseModel>();
Set<Class<?>> classSet = scanModel.getDisconfFileClassSet();
for (Class<?> disconfFile : classSet) {
Set<Method> methods = scanModel.getDisconfFileItemMap().get(disconfFile);
if (methods == null) {
continue;
}
DisconfCenterFile disconfCenterFile = transformScanFile(disconfFile, methods);
disconfCenterFiles.add(disconfCenterFile);
}
return disconfCenterFiles;
}
use of com.baidu.disconf.client.common.model.DisconfCenterBaseModel in project disconf by knightliao.
the class StaticScannerItemMgrImpl method getDisconfItems.
/**
* 转换配置项
*/
private static List<DisconfCenterBaseModel> getDisconfItems(ScanStaticModel scanModel) {
List<DisconfCenterBaseModel> disconfCenterItems = new ArrayList<DisconfCenterBaseModel>();
Set<Method> methods = scanModel.getDisconfItemMethodSet();
for (Method method : methods) {
DisconfCenterItem disconfCenterItem = transformScanItem(method);
if (disconfCenterItem != null) {
disconfCenterItems.add(disconfCenterItem);
}
}
return disconfCenterItems;
}
use of com.baidu.disconf.client.common.model.DisconfCenterBaseModel in project disconf by knightliao.
the class StaticScannerNonAnnotationFileMgrImpl method scanData2Store.
/**
*
*/
public static void scanData2Store(String fileName) {
DisconfCenterBaseModel disconfCenterBaseModel = StaticScannerNonAnnotationFileMgrImpl.getDisconfCenterFile(fileName);
DisconfStoreProcessorFactory.getDisconfStoreFileProcessor().transformScanData(disconfCenterBaseModel);
}
Aggregations