//
// 文件名
//
Class<?> cls = method.getDeclaringClass();
DisconfFile disconfFile = cls.getAnnotation(DisconfFile.class);
//
// Field名
//
Field field = MethodUtils.getFieldFromMethod(method,
cls.getDeclaredFields(), DisConfigTypeEnum.FILE);
if (field != null) {
//
// 请求仓库配置数据
//
DisconfStoreProcessor disconfStoreProcessor = DisconfStoreProcessorFactory
.getDisconfStoreFileProcessor();
Object ret = disconfStoreProcessor.getConfig(
disconfFile.filename(), disconfFileItem.name());
if (ret != null) {
LOGGER.info("using disconf store value: "
+ disconfFile.filename() + " ("
+ disconfFileItem.name() + " , " + ret + ")");
return ret;
}
}