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

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

There is a newer version: 1.0.1
Show newest version
package com.github.developframework.kite.fastjson;

import com.github.developframework.kite.core.Framework;
import com.github.developframework.kite.core.KiteConfiguration;
import com.github.developframework.kite.core.Producer;
import com.github.developframework.kite.core.data.DataModel;
import com.github.developframework.kite.core.strategy.KitePropertyNamingStrategy;
import com.github.developframework.kite.core.strategy.NamingStrategy;
import com.github.developframework.kite.core.structs.TemplatePackage;

import java.util.List;

/**
 * @author qiushui on 2021-07-15.
 */
public final class FastjsonFramework implements Framework {

    @Override
    public KitePropertyNamingStrategy namingStrategy() {
        return NamingStrategy.UNDERLINE.getNamingStrategy();
    }

    @Override
    public Void getCore() {
        return null;
    }

    @Override
    public Producer buildProducer(KiteConfiguration configuration, DataModel dataModel, String namespace, String templateId) {
        return new FastjsonProducer(configuration, dataModel, namespace, templateId);
    }

    @Override
    public Producer buildProducer(KiteConfiguration configuration, DataModel dataModel, List templatePackages) {
        return new FastjsonProducer(configuration, dataModel, templatePackages);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy