public static void main(String[] args) {
        final String rootNode = "/projectx/modulex";
        ZookeeperConfigProfile configProfile = new ZookeeperConfigProfile(Const.ZK, rootNode, "1.0.0");
        ZookeeperConfigGroup propertyGroup1 = new ZookeeperConfigGroup(configProfile, "property-group1");

        System.out.println(propertyGroup1);

        // Listen changes
        propertyGroup1.register(new IObserver() {
            @Override
            public void notified(String data, String value) {
                // Some initialization
            }
        });

        String stringProperty = propertyGroup1.get("string_property_key");
        Preconditions.checkState("Config-Toolkit".equals(stringProperty));
        String intProperty = propertyGroup1.get("int_property_key");
        Preconditions.checkState(1123 == Integer.parseInt(intProperty));

        propertyGroup1.close();
    }
@author <a href="mailto:wangyuxuan@dangdang.com">Yuxuan Wang</a>
config-toolkit-demo/src/main/java/com/dangdang/config/service/easyzk/demo/normal/WithoutSpring.java