Package com.baidu.disconf.client.common.annotations

Examples of com.baidu.disconf.client.common.annotations.DisconfFile.filename()


            // 请求仓库配置数据
            //
            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;
View Full Code Here


                    .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;
            }
        }
View Full Code Here

        for (Class<?> item : classdata) {

            LOGGER.info(item.toString());
            DisconfFile disconfFile = item.getAnnotation(DisconfFile.class);
            LOGGER.info("\tfile name: " + disconfFile.filename());
            LOGGER.info("\tenv: " + disconfFile.env());
            LOGGER.info("\tversion: " + disconfFile.env());
        }
    }
View Full Code Here

            //
            // 请求仓库配置数据
            //
            Object ret = DisconfStoreMgr.getInstance().getConfigFile(
                    disconfFile.filename(), disconfFileItem.name());
            if (ret != null) {
                LOGGER.info("using disconf store value: (" + field.getName()
                        + " , " + ret + ")");
                return ret;
            }
View Full Code Here

        DisconfFile disconfFileAnnotation = disconfFileClass
                .getAnnotation(DisconfFile.class);

        //
        // file name
        disconfCenterFile.setFileName(disconfFileAnnotation.filename());

        //
        // disConfCommonModel
        DisConfCommonModel disConfCommonModel = makeDisConfCommonModel(
                disconfFileAnnotation.env(), disconfFileAnnotation.version(),
View Full Code Here

        //
        // disConfCommonModel
        DisConfCommonModel disConfCommonModel = makeDisConfCommonModel(
                disconfFileAnnotation.env(), disconfFileAnnotation.version(),
                ZooPathMgr.joinPath(WatchMgr.getInstance()
                        .getClientDisconfFileZooPath(), disconfFileAnnotation
                        .filename()));
        disconfCenterFile.setDisConfCommonModel(disConfCommonModel);

        // Remote URL
        String url = DisconfWebPathMgr.getRemoteUrlParameter(
View Full Code Here

        for (Class<?> item : classdata) {

            LOGGER.info(item.toString());
            DisconfFile disconfFile = item.getAnnotation(DisconfFile.class);
            LOGGER.info("\tfile name: " + disconfFile.filename());
            LOGGER.info("\tenv: " + disconfFile.env());
            LOGGER.info("\tversion: " + disconfFile.env());
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.