Package cc.plural.jsonij.marshal.codec.JSONValueCodecStore

Examples of cc.plural.jsonij.marshal.codec.JSONValueCodecStore.JSONValueCodecHelper


    public Object marshalJSONDocumentObject(JSON.Object<CharSequence, Value> jsonObject, Class<?> objectClass) throws JSONMarshalerException {
        Object object = null;

        if (JSONMarshaler.hasCodec(objectClass)) {
            JSONValueCodecHelper codecHelper = JSONMarshaler.getCodecHelper(objectClass);
            try {
                object = codecHelper.decode(jsonObject, objectClass);
            } catch (IllegalAccessException ex) {
                Logger.getLogger(JSONDocumentMarshaler.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IllegalArgumentException ex) {
                Logger.getLogger(JSONDocumentMarshaler.class.getName()).log(Level.SEVERE, null, ex);
            } catch (InvocationTargetException ex) {
View Full Code Here

TOP

Related Classes of cc.plural.jsonij.marshal.codec.JSONValueCodecStore.JSONValueCodecHelper

Copyright © 2018 www.massapicom. 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.