org.alfresco.bm.config.zookeeper
Class ZkConfigNode
java.lang.Object
org.alfresco.bm.config.zookeeper.ZkConfigNode
public class ZkConfigNode
- extends Object
Simple container to load node from a ZooKeeper node and convert it to
the required target type or properties if the
java type is not specified.
- Since:
- 1.0
- Author:
- Derek Hulley
ZkConfigNode
public ZkConfigNode(String json)
- Parameters:
json - the JSON string
- Throws:
com.google.gson.JsonSyntaxException - if the JSON could not be converted to a Java instance
getInstance
public static Object getInstance(String json)
toString
public String toString()
- Overrides:
toString in class Object
getJson
public String getJson()
- Get the original JSON from which the
getInstance() was constructed.
getInstance
public Object getInstance()
- Get the object made from the supplied JSON
Copyright © 2012. All Rights Reserved.