Class JSONDecoder<T>
- java.lang.Object
-
- org.epics.archiverappliance.utils.ui.JSONDecoder<T>
-
public class JSONDecoder<T> extends Object
Generate something that marshalls JSON into a POJO using bean introspection. Underlying framework is still json-simple. This has a giant switch statement that does things based on types; so please add unit tests as part of adding new fields to objects that use JSONDecoder.- Author:
- mshankar
-
-
Method Detail
-
getDecoder
public static <T> JSONDecoder<T> getDecoder(Class<T> clazz) throws IntrospectionException, NoSuchMethodException
-
decode
public void decode(org.json.simple.JSONObject jsonObj, T obj) throws IllegalAccessException, InvocationTargetException, InstantiationException
-
-