org.alfresco.bm.config.zookeeper
Class ZkConfigNode

java.lang.Object
  extended by 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

Constructor Summary
ZkConfigNode(String json)
           
 
Method Summary
 Object getInstance()
          Get the object made from the supplied JSON
static Object getInstance(String json)
           
 String getJson()
          Get the original JSON from which the getInstance() was constructed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.