All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.developframework.kite.fastjson.FastjsonAssembleContext Maven / Gradle / Ivy

The newest version!
package com.github.developframework.kite.fastjson;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.developframework.kite.core.AssembleContext;
import com.github.developframework.kite.core.KiteConfiguration;
import com.github.developframework.kite.core.data.DataModel;
import com.github.developframework.kite.core.node.ArrayNodeProxy;
import com.github.developframework.kite.core.node.ObjectNodeProxy;

public class FastjsonAssembleContext extends AssembleContext {

    public FastjsonAssembleContext(KiteConfiguration configuration, DataModel dataModel) {
        super(configuration, dataModel, true);
    }

    @Override
    public ObjectNodeProxy createObjectNodeProxy() {
        return new FastjsonObjectNodeProxy(new JSONObject(true));
    }

    @Override
    public ArrayNodeProxy createArrayNodeProxy() {
        return new FastjsonArrayNodeProxy(new JSONArray());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy